markdown2
Python implementation of Markdown that converts Markdown text to HTML, with optional extras such as tables and footnotes.
markdown2 is a Python module that converts Markdown text to HTML. It is called from code through a function or a converter object, and the README also shows a command-line form that converts a file. Extras such as tables, footnotes, header IDs, a table of contents and syntax coloring of code blocks are switched on by name when converting. Syntax coloring needs Pygments, which the all extra of the install command brings in.
Trent Mick maintains the project in a personal repository. The README says everything needed to run it is in one file, which can be copied onto the Python path as a module or onto the executable path as a script.
Worth knowing
Some files in the repository, used for testing and performance work, carry licenses other than MIT. The package the registry ships is under MIT.
Identity
- Status
- Active
- Maintainer
- Trent Mick3
- Maintained by
- Individual3
- First release
- 20086
Rendering and deploy
- Install with
- pip install, setup.py install, easy_install, pypm install, copy lib/markdown2.py2
Releases
Adoption
Sources
- 2026-11-16: links, Written in, GitHub stars
api.github.com/repos/trentm/python-markdown2 - 2026-11-16: links, Categories, Install with
github.com/trentm/python-markdown2/blob/master/README.md - 2026-11-16: Maintainer, Maintained by, License, License model
github.com/trentm/python-markdown2/blob/master/LICENSE.txt - 2026-11-16: Runtime, Minimum runtime
github.com/trentm/python-markdown2/blob/2.5.5/setup.py - 2026-11-16: Contributors
api.github.com/repos/trentm/python-markdown2/contributors?per_page=1 - 2026-11-16: Current major version, Last release, First release
pypi.org/pypi/markdown2/json