An mdformat plugin for rendering tables.
Project description
mdformat-tables
An mdformat plugin for rendering tables.
For example, converting:
a | b | c
:- | -: | :-:
1 | 2 | 3
xxxxxx | yyyyyy | zzzzzz
to:
| a | b | c |
| :----- | -----: | :----: |
| 1 | 2 | 3 |
| xxxxxx | yyyyyy | zzzzzz |
For further examples, see tests/fixtures.md in the repository.
Development
This package utilises flit as the build engine, and tox for test automation.
To install these development dependencies:
pip install flit tox
To run the tests:
tox
To run the code formatting and style checks:
tox -e py37-pre-commit
or directly
pip install pre-commit
pre-commit run --all
To run the pre-commit hook test:
tox -e py37-hook
Publish to PyPi
Either use flit directly:
flit publish
or trigger the GitHub Action job, by creating a release with a tag equal to the version, e.g. v0.0.1
.
Note, this requires generating an API key on PyPi and adding it to the repository Settings/Secrets
, under the name PYPI_KEY
.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mdformat_tables-0.2.0.tar.gz
.
File metadata
- Download URL: mdformat_tables-0.2.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.24.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4407379f7dcf2191cbfe89609baffae2ef48eefd895c01eca896e2c6e223ff53 |
|
MD5 | a5ee4a0dab6680c4d9bbc7dcd1057822 |
|
BLAKE2b-256 | dc2091e331ab87ee6dd42f804879144294b7aab940dfa6237cb8a60caebfeafc |
File details
Details for the file mdformat_tables-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: mdformat_tables-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.24.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93b65a7f4f5ab776e0b37aaeeffaef07756e99fd4b801c8c1d1b634524bfffc7 |
|
MD5 | 83da6ee2c5c06b974ce82651537bed4b |
|
BLAKE2b-256 | 7b7304054350747860184f6c866675b76757c6b9c46d3e84d7628c9aafb03b39 |