Comparison
commonmark vs gh-md-to-html vs markdown-it-pyrs 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-htmlA Python interface for markdown-it.rs, using Rust for blazingly fast Markdown parsing ⚡️
Low maintenance activity. Last release over 2 years ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install markdown-it-pyrsA fast and complete Python implementation of Markdown
Actively maintained. Last release 1 day ago, commits in 22 of the last 26 weeks. A safe choice.
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.
- markdown2 is the most used: 8.4M downloads a month, 2.8× more than commonmark.
- markdown2 also has the best Pythie’s Index (79).
- Safe default for a new project: markdown2.
Side by side
| Metric | commonmark | gh-md-to-html | markdown-it-pyrs | markdown2 |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 7 | 16 |