mdformat-gfm
Mdformat plugin for GitHub Flavored Markdown compatibility
Description
Mdformat is a formatter for CommonMark compliant Markdown.
Mdformat-gfm is an mdformat plugin that changes the target specification to GitHub Flavored Markdown (GFM), making the tool able to format the following syntax extensions:
- tables
- task list items
- strikethroughs
- autolinks
- disallowed raw HTML (note that no changes are required from a formatter to support this extension)
Install
pipx install mdformat
pipx inject mdformat mdformat-gfm
Usage
mdformat <filename>
Configuration
Mdformat-gfm distribution includes two plugins identified as gfm and tables.
The gfm plugin adds support for all GFM syntax (including tables).
Enabling tables only adds tables support.
Mdformat-gfm adds a --compact-tables CLI option and a corresponding compact_tables TOML boolean.
Turning this on will strip extra spaces from GFM tables that are otherwise used to align table columns.
To use the option on the command line, do
mdformat --compact-tables <filename>
Alternatively add the following in a .mdformat.toml configuration file
[plugin.tables]
compact_tables = true
Metadata
Release files for mdformat-gfm 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mdformat_gfm-1.0.0.tar.gz | 10.1 kB | Without provenance | Details for mdformat_gfm-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mdformat_gfm-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for mdformat_gfm-1.0.0-py3-none-any.whl |
Total release size: 21.1 kB
Release files / mdformat_gfm-1.0.0.tar.gz
| Download URL | mdformat_gfm-1.0.0.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1d49a409a6acb774ce7635c72d69178df7dce1dc8cdd10e19f78e8e57b72623
|
|
BLAKE2b-256 checksum How to use checksums |
566fa626ebb142a290474401b67e2d61e73ce096bf7798ee22dfe6270f924b3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / mdformat_gfm-1.0.0-py3-none-any.whl
| Download URL | mdformat_gfm-1.0.0-py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7305a50efd2a140d7c83505b58e3ac5df2b09e293f9bbe72f6c7bee8c678b005
|
|
BLAKE2b-256 checksum How to use checksums |
e6186bc2189b744dd383cad03764f41f30352b1278d2205096f77a29c0b327ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for mdformat-gfm 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.