Comparison
blacken-docs vs mdformat-black vs mdformat-ruff
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Run Black on Python code blocks in documentation files.
Actively maintained. Last release 3 days ago, commits in 11 of the last 26 weeks. A safe choice.
$
pip install blacken-docsMdformat plugin to Blacken Python code blocks
Likely abandoned. No release or commit for years (last release over 6 years ago).
$
pip install mdformat-blackMdformat plugin to ruffen Python code blocks
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
$
pip install mdformat-ruffIn short
- mdformat-black looks abandoned: avoid it for new projects.
- mdformat-ruff is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- blacken-docs is the most used: 121.9K downloads a month.
- blacken-docs also has the best Pythie’s Index (70).
- Safe default for a new project: blacken-docs.
Side by side
| Metric | blacken-docs | mdformat-black | mdformat-ruff |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 70 | 16 |