What problem does it solve?
Extracts readable, cleaned Markdown from arbitrary HTTP/HTTPS pages by preferring markdown-native responses and falling back to selector-based HTML extraction and a DOM-to-markdown parser when selectors fail. It eliminates manual copy-paste and noisy HTML by detecting content type, isolating content containers, and stripping navigation and UI artifacts.
Core Features & Use Cases
- Content-type prioritization: Prefers text/markdown endpoints to preserve native Markdown content.
- Selector-based extraction: Uses site-specific or generic CSS selectors to extract article/main content and remove nav/header/footer elements.
- DOM-to-Markdown fallback: Provides a Bun-based parser that selects the largest content region, cleans UI elements, and converts HTML to well-formed Markdown with preserved code blocks.
- Use Case: Ideal for grabbing documentation pages, blog articles, or reference material for summarization, archiving, or inclusion into knowledge bases.
Quick Start
Fetch https://example.com and convert the page to clean markdown, preferring markdown responses and falling back to selector extraction or the Bun DOM-to-markdown parser.