Mistune
Fast and extensible Markdown parser with plugin support.
Markdown, editors and content PyPI BSD
How Mistune is used
Mistune is a dependency in 12 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 290 projects, and what it is used with below comes from all of them. The most used alternative in our scan is Markdown (46 projects). Projects that use it most often also use Jinja2 (97.9%), Beautiful Soup (94.5%), MarkupSafe (89.7%).
Mistune popularity over time
Gid Score 64: downloads 89, use in agent projects 66, GitHub stars 30, downloads trend 58 (each 0-100). How it is calculated.
Often used with Mistune
| Jinja2 | 97.9% of Mistune projects · 45.0× more than average |
|---|---|
| Beautiful Soup | 94.5% of Mistune projects · 43.8× more than average |
| MarkupSafe | 89.7% of Mistune projects · 121.0× more than average |
| attrs | 88.6% of Mistune projects · 127.9× more than average |
| NumPy | 88.6% of Mistune projects · 15.2× more than average |
| Requests | 88.6% of Mistune projects · 13.0× more than average |
| packaging | 87.6% of Mistune projects · 59.8× more than average |
| PyYAML | 87.6% of Mistune projects · 14.7× more than average |
From all 290 projects in our scan that use Mistune, including the dependency samples.
By coding agent
| Claude Code | 0.2% of projects set up for it |
|---|---|
| GitHub Copilot | 0.2% of projects set up for it |
Share of public repos configured for each agent that list Mistune as a dependency.
How Mistune is funded
GitHub Sponsors
| @lepture | 4 current sponsors |
|---|
GitHub shows how many people and companies sponsor an account, not how much they pay. Sponsors of a person back all of their work, which here includes Authlib, joserfc.
Ways to fund Mistune
GitHub Sponsors Patreon Tidelift Own page
As the maintainers list them in FUNDING.yml on GitHub. Checked Oct 20, 2026.
Install
| Package | pip install mistune |
|---|---|
| Main stacks | Python (287), Next.js (3) |
| Example projects | assafelovic/gpt-researcher, Paper2Poster/Paper2Poster, BlackArbsCEO/Adv_Fin_ML_Exercises, rsanshierli/EasyBert, YuhangChen1/Paper2All |
Alternatives to Mistune
Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside Mistune are not listed here; they are in "Often used with".
| Tool | Gid Score | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|---|
| Markdown pypi Python implementation of Markdown parser for converting Markdown to HTML. |
69 | 46 (2.8%) | 26.6M | 4,253 | BSD-3-Clause |
| markdown-it-py pypi Python port of markdown-it parser for CommonMark-compliant Markdown parsing. |
68 | 46 (2.8%) | 123M | 1,378 | MIT |
| markdown2 pypi Fast, complete Python implementation of Markdown with extras. |
52 | 2 (0.1%) | 1.7M | 2,823 | MIT |
More in Markdown, editors and content: react-markdown remark-gfm Marked Jinja2 gray-matter Tiptap Shiki highlight.js