Comparison
commonmark vs gh-md-to-html vs markdown2 vs mistune
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Python parser for the CommonMark Markdown spec
Archived. The repository is read-only: no more fixes or releases will come.
pip install commonmarkFeature-rich Github-flavored Markdown to html python and command line interface.
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install gh-md-to-htmlA fast and complete Python implementation of Markdown
Maintained. Last release 9 months ago, commits in 21 of the last 26 weeks. Weaker on release cadence.
pip install markdown2A sane and fast Markdown parser with useful plugins and renderers
Actively maintained. Last release 6 weeks ago, commits in 18 of the last 26 weeks. A safe choice.
pip install mistuneIn short
- commonmark is archived: avoid it for new projects.
- gh-md-to-html is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- mistune is the most used: 73.4M downloads a month, 8.9× more than markdown2.
- mistune also has the best Pythie’s Index (80).
- Safe default for a new project: mistune.
Side by side
| Metric | commonmark | gh-md-to-html | markdown2 | mistune |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 7 | 16 |