Comparison
commonmark vs gh-md-to-html vs markdown-it-py vs markdown2
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-htmlPython port of markdown-it. Markdown parsing, done right!
Maintained. Last release 3 weeks ago, commits in 5 of the last 26 weeks. Weaker on commit activity.
pip install markdown-it-pyA 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 markdown2In 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.
- markdown-it-py is the most used: 613.8M downloads a month, 74× more than markdown2.
- Maintenance is comparable: markdown2 68, markdown-it-py 64 on Pythie’s Index.
- markdown-it-py is growing fastest: downloads +16% over the last month.
- Safe default for a new project: markdown-it-py.
Side by side
| Metric | commonmark | gh-md-to-html | markdown-it-py | markdown2 |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 7 | 16 |