
markdown-it-py
Python port of the markdown-it Markdown parser, which follows the CommonMark spec and supports syntax plugins.
markdown-it-py.readthedocs.iorepositorydocsplugins
markdown-it-py parses Markdown into a stream of tokens and renders the tokens to HTML. It follows the CommonMark spec for the base syntax, and its rules can be extended or replaced in code. Syntax beyond CommonMark comes from plugins that are added to a parser object with use, and a plugin such as the table syntax is switched on with enable.
It is a Python port of markdown-it, the JavaScript parser, and changes as little of the JavaScript code structure as possible. The package also installs a command-line tool, markdown-it, which reads files or standard input and writes HTML to standard output.
Worth knowing
Tables are off by default, as in CommonMark, so a document that uses table syntax needs the table option or the command-line flag to render it as a table.
Sources
- 2026-11-16: links
markdown-it-py.readthedocs.io/en/latest/ - 2026-11-16: links, Written in, License model, GitHub stars
github.com/executablebooks/markdown-it-py - 2026-11-16: links, Categories, Runtime, Install with
github.com/executablebooks/markdown-it-py/blob/master/README.md - 2026-11-16: Maintainer, Maintained by, License
github.com/executablebooks/markdown-it-py/blob/v4.3.0/LICENSE - 2026-11-16: Minimum runtime
github.com/executablebooks/markdown-it-py/blob/v4.3.0/pyproject.toml - 2026-11-16: Current major version, Last release
github.com/executablebooks/markdown-it-py/releases/tag/v4.3.0 - 2026-11-16: First release
github.com/executablebooks/markdown-it-py/releases/tag/v0.1.1d - 2026-11-16: Contributors
api.github.com/repos/executablebooks/markdown-it-py/contributors?per_page=1 - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/pypi.org/packages/markdown-it-py