markdownify
Convert HTML to markdown for content extraction and transformation.
Scraping, browsers and parsing PyPI MIT HTML parsing and extraction
How markdownify is used
markdownify is a dependency in 8 of the 6,211 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,717, Ethereum and EVM 1,533, 3D and games 2,862, agent frameworks and SDKs 11,237); counting those, it appears in 211 projects, and what it is used with below comes from all of them. The most used alternative in our scan is html2text (9 projects). Projects that use it most often also use Requests (77.3%), Beautiful Soup (72.5%), python-dotenv (72.5%).
markdownify popularity over time
Gid Score 60: downloads 88, use in agent projects 62, GitHub stars 25, downloads trend 52 (each 0-100). How it is calculated.
Often used with markdownify
| Requests | 77.3% of markdownify projects · 11.4× more than average |
|---|---|
| Beautiful Soup | 72.5% of markdownify projects · 33.6× more than average |
| python-dotenv | 72.5% of markdownify projects · 7.9× more than average |
| Pydantic | 71.6% of markdownify projects · 8.3× more than average |
| OpenAI Python Library | 69.2% of markdownify projects · 17.5× more than average |
| NumPy | 65.4% of markdownify projects · 11.2× more than average |
| pandas | 59.2% of markdownify projects · 13.8× more than average |
| Pillow | 58.8% of markdownify projects · 15.3× more than average |
From all 211 projects in our scan that use markdownify, including the dependency samples.
By coding agent
| Claude Code | 0.2% of projects set up for it |
|---|
Share of public repos configured for each agent that list markdownify as a dependency.
Install
| Package | pip install markdownify |
|---|---|
| Main stacks | Python (209), Next.js (2) |
| Example projects | Paper2Poster/Paper2Poster, apconw/Aix-DB, FlagOpen/RoboBrain2.5, ZTE-AICloud/Co-Sight, GAIR-NLP/DeepResearcher |
Alternatives to markdownify
Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside markdownify are not listed here; they are in "Often used with".
| Tool | Gid Score | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|---|
| html2text pypi Convert HTML to Markdown-structured text for parsing and transforming web content. |
54 | 9 (0.6%) | 2.9M | 2,173 | GPL-3.0-or-later |
More in Scraping, browsers and parsing: Beautiful Soup Puppeteer lxml Playwright Core Playwright (Python) Cheerio fast-xml-parser jsonc-parser