FindSoftware

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

Current major version
26
Last release
2026-03-026

Adoption

GitHub stars
2,8221
Contributors
965

Why these figures do not compare

Sources

  1. 2026-11-16: links, Written in, GitHub stars
    api.github.com/repos/trentm/python-markdown2
  2. 2026-11-16: links, Categories, Install with
    github.com/trentm/python-markdown2/blob/master/README.md
  3. 2026-11-16: Maintainer, Maintained by, License, License model
    github.com/trentm/python-markdown2/blob/master/LICENSE.txt
  4. 2026-11-16: Runtime, Minimum runtime
    github.com/trentm/python-markdown2/blob/2.5.5/setup.py
  5. 2026-11-16: Contributors
    api.github.com/repos/trentm/python-markdown2/contributors?per_page=1
  6. 2026-11-16: Current major version, Last release, First release
    pypi.org/pypi/markdown2/json

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON