Skip to main content

Mdformat plugin for GitHub Flavored Markdown compatibility

Project description

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

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

mdformat_gfm-1.0.0.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mdformat_gfm-1.0.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file mdformat_gfm-1.0.0.tar.gz.

File metadata

  • Download URL: mdformat_gfm-1.0.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for mdformat_gfm-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d1d49a409a6acb774ce7635c72d69178df7dce1dc8cdd10e19f78e8e57b72623
MD5 3fc93fb50a68d0f8a312823b8de9f711
BLAKE2b-256 566fa626ebb142a290474401b67e2d61e73ce096bf7798ee22dfe6270f924b3f

See more details on using hashes here.

File details

Details for the file mdformat_gfm-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: mdformat_gfm-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for mdformat_gfm-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7305a50efd2a140d7c83505b58e3ac5df2b09e293f9bbe72f6c7bee8c678b005
MD5 ceef8221a114e962bf25b6cfcf9ff4b4
BLAKE2b-256 e6186bc2189b744dd383cad03764f41f30352b1278d2205096f77a29c0b327ad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page