Skip to main content

Build Status PyPI version

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:

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)

Source distribution for mdformat-gfm 1.0.0
File Size Uploaded
mdformat_gfm-1.0.0.tar.gz 10.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mdformat-gfm 1.0.0
File Interpreter ABI Platform
mdformat_gfm-1.0.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page