JohannesKaufmann/html-to-markdown
⚙️ Convert HTML to Markdown. Even works with entire websites and can be extended through rules. observed · 2026-08-28
Health v2 · maintenance only
89/100
- Activity 95
- Release rhythm 75
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 32.5
- age_days: 3032
- days_rel: 87
- days_push: 30
- n_releases_24m: 13
Adoption not part of the score
3795 stars · 219 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A robust Go library and CLI that converts HTML (including entire websites) into clean, readable Markdown, with smart escaping and support for complex formatting like nested lists, tables, and code blocks. It is fully extendable through plugins and custom rules, and is also offered as an online demo and hosted REST API.
Use cases
- convert html to markdown
- migrate a website to markdown files
- convert scraped html pages into markdown for llm ingestion
- turn html tables into markdown tables
- batch convert html documents to markdown from the command line
- clean up messy html into readable markdown
When to choose
- you need accurate conversion of complex or nested HTML edge cases
- you want a Go library you can extend with custom conversion rules or plugins
- you need to convert entire websites, not just snippets
- you want smart escaping that only escapes when necessary
When to avoid
- you need to convert Markdown back to HTML
- you work in a language other than Go and only need a simple one-off conversion
- you need a hosted service without self-integration (though a REST API exists, it is external to the library)
Facets
library · maturity active
parser cli plugin-system developer-tools web-development documentation go cli cross-platform html-to-markdown markdown-converter converter commonmark web-scraping-adjacent
8 sources
- readme: https://github.com/JohannesKaufmann/html-to-markdown · fetched 2026-08-28 · 69da26578ded
- homepage: https://html-to-markdown.com · fetched 2026-08-29 · c83d308f5971
- site_page: https://html-to-markdown.com/docs · fetched 2026-08-29 · 463897ac810a
- site_page: https://html-to-markdown.com/docs/backtick-in-code · fetched 2026-08-29 · 4d7609486ee3
- site_page: https://html-to-markdown.com/docs/heading-in-link · fetched 2026-08-29 · 13fde908b09c
- site_page: https://html-to-markdown.com/docs/multiline-link · fetched 2026-08-29 · dc270cdce81a
- site_page: https://html-to-markdown.com/docs/ordered-list-start · fetched 2026-08-29 · a7d6342c5d0e
- site_page: https://html-to-markdown.com/api · fetched 2026-08-29 · efdf4fd5e675
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| JohannesKaufmann/html-to-markdown | main | 89 |
For agents
markdown · JSON · MCP: product_card(name="JohannesKaufmann/html-to-markdown")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem