{"categories":[{"label":"HTML","url":"https://skillfed.io/packages/category/text-processing-markup-html"}],"enrichment":{"capability":"Converts real-world HTML\u2014including malformed tags, broken entities, and nested tables\u2014into clean CommonMark or Djot Markdown in a single call, with optional metadata extraction.","skillfed_tags":["html-parsing","markdown-generation","content-extraction"],"use_cases":["Extract clean Markdown from web scraped HTML without manual cleanup or tag-balancing logic.","Convert email HTML bodies or rich-text editor output to Markdown for storage or downstream processing.","Parse and extract structured metadata (Open Graph, JSON-LD) from web pages in the same pass as content conversion.","Build content pipelines that accept arbitrary HTML and produce consistent, lossless Markdown without tuning per-source.","Generate Markdown documentation from HTML-based CMS exports or legacy web content archives."],"what_it_does":"html-to-markdown is a Python binding to a Rust-based HTML-to-Markdown converter designed to handle messy, real-world HTML without requiring manual parsing strategy selection or tuning. It accepts unclosed tags, malformed entities, CDATA, custom elements, nested tables, and mixed encodings, then returns clean Markdown output in a single `convert()` call. The package exposes a structured result containing the converted content, warnings, and optionally extracted metadata (Open Graph, Twitter, JSON-LD, microdata).\n\nThe converter uses a tiered dispatch strategy (byte scanner \u2192 DOM walker \u2192 html5ever repair) to achieve byte-equal output across different parsing paths, ensuring consistent results regardless of input complexity. It supports both CommonMark and Djot output formats, handles GitHub-flavored Markdown tables with alignment and cell padding, and can optionally mirror inline images. The implementation is fast enough for whole-corpus jobs and requires Python 3.10 or later; it ships as a compiled extension with pre-built wheels for major platforms.","worth_installing":"Yes. The package is actively maintained, has no known vulnerabilities, supports current Python versions (3.10\u20133.14), and solves a real problem\u2014converting messy HTML to clean Markdown without manual intervention. Medium install friction is acceptable for a compiled extension with pre-built wheels. Use it if you need robust HTML-to-Markdown conversion in production; skip it only if you need Python <3.10 or have a simpler, pure-Python alternative already in place."},"id":"html-to-markdown","links":{"html":"https://skillfed.io/packages/html-to-markdown","md":"https://skillfed.io/packages/html-to-markdown.md","pypi":"https://pypi.org/project/html-to-markdown/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-05","license_spdx":"MIT","license_treatment":"permissive","name":"html-to-markdown","python_support":"supports_current","summary":"High-performance HTML to Markdown converter"},"popularity":{"monthly_downloads":829991,"position":4952,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"3.10.6"}
