{"repo":"RustedBytes/fast-h2m","free":true,"listed":false,"github":"https://github.com/RustedBytes/fast-h2m","clone":"git clone https://github.com/RustedBytes/fast-h2m.git","description":"a fork of html-to-markdown with speed enhancements","language":"HTML","stars":10,"topics":["converter","html","markdown","parser","llm","streaming","pyo3","python-bindings"],"license":"MIT","category":"ai-agents","readme_excerpt":"fast h2m High-performance HTML to Markdown converter written in Rust. Install Basic Usage convert() returns a structured ConversionResult with the converted text, metadata, tables, and more: Error Handling Conversion returns a Result . Inputs that look like binary data are rejected with ConversionError::InvalidInput to prevent runaway allocations. Table colspan / rowspan values are also clamped internally to keep output sizes bounded. Configuration Builder Pattern Struct Literal Fast DOM Mode For throughput-oriented conversion of common HTML, use the lean DOM strategy: FastDom skips the richer metadata, structure, visitor, selector, and repair machinery used by the full Tier-2 converter. Prefer it when raw Markdown throughput matters more than the full structured ConversionResult . mdream Mode For mdream-backed lean conversion, use the Mdream strategy: For chunked streaming conversion: Mdream is a lean mode and does not populate rich side channels such as metadata, document structure, tables, visitor output, or inline images. Preserving HTML Tags The preserve tags option allows you to keep specific HTML tags in their original form instead of converting them to Markdown: Web Scraping with Preprocessing Metadata Extraction Metadata is automatically included in the result when the default metadata feature is enabled. Disable metadata extraction when you do not need it: With metadata extraction enabled, read the collected fields from result.metadata : Image Extraction Inline imag","default_branch":null,"files":null,"tree":[],"storefront":"/r/RustedBytes","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/RustedBytes/fast-h2m/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}