https://github.com/hukkin/mdformat-tables
An mdformat plugin for rendering tables
https://github.com/hukkin/mdformat-tables
markdown markdown-it mdformat pre-commit
Last synced: 10 months ago
JSON representation
An mdformat plugin for rendering tables
- Host: GitHub
- URL: https://github.com/hukkin/mdformat-tables
- Owner: hukkin
- License: mit
- Created: 2020-09-24T22:48:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-01-30T18:15:32.000Z (12 months ago)
- Last Synced: 2025-03-15T00:48:14.329Z (10 months ago)
- Topics: markdown, markdown-it, mdformat, pre-commit
- Language: Python
- Homepage:
- Size: 43 KB
- Stars: 15
- Watchers: 10
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mdformat-tables
[![Build Status][ci-badge]][ci-link]
[![PyPI version][pypi-badge]][pypi-link]
An [mdformat](https://github.com/hukkin/mdformat) plugin for rendering tables.
For example, converting:
```markdown
a | b | c
:- | -: | :-:
1 | 2 | 3
xxxxxx | yyyyyy | zzzzzz
```
to:
```markdown
| a | b | c |
| :----- | -----: | :----: |
| 1 | 2 | 3 |
| xxxxxx | yyyyyy | zzzzzz |
```
For further examples, see tests/fixtures.md in the repository.
[ci-badge]: https://github.com/hukkin/mdformat-tables/actions/workflows/tests.yaml/badge.svg?branch=master
[ci-link]: https://github.com/hukkin/mdformat-tables/actions?query=workflow%3ACI+branch%3Amaster+event%3Apush
[pypi-badge]: https://img.shields.io/pypi/v/mdformat-tables.svg
[pypi-link]: https://pypi.org/project/mdformat-tables