</>MCP Agents Market
Plugin

html-to-markdown

by xberg-io868HTMLUpdated 2026-09-12

High performance and CommonMark compliant HTML to Markdown converter. Maintained by the Kreuzberg team. Kreuzberg is a fast, polyglot document intelligence engine with a Rust core. It extracts structured data from 98+ document formats using streaming parsers and built-in OCR.

Claude CodeCodex CLICursorGemini CLIFactory DroidGitHub Copilot CLI

The html-to-markdown Claude Code plugin enables AI coding assistants to convert HTML documents into clean Markdown or Djot format. Built on a high-performance Rust core, it handles real-world HTML including malformed markup, unclosed tags, and mixed encodings without data loss. The plugin extracts structured metadata (Open Graph, JSON-LD, Twitter cards) and converts tables to GitHub-flavored Markdown in a single operation. It provides AI agents with reliable HTML-to-Markdown conversion capabilities across 16 programming languages through a unified API.

Key Features

CommonMark and Djot output from a single convert() call
Handles malformed HTML including unclosed tags, broken entities, and mixed encodings without content loss
Extracts structured metadata (Open Graph, Twitter cards, JSON-LD, microdata, RDFa) from HTML head
Converts tables to GitHub-flavored Markdown with proper cell padding and alignment
High-performance tiered dispatch: byte scanner → DOM walker → html5ever repair
Visitor API for transforming the converted Markdown AST
Supports 16 language bindings (Rust, Python, Node.js, Go, Java, C#, PHP, Ruby, Elixir, R, Dart, Kotlin, Swift, Zig, WASM, C)
Processes 19–116 MB/s on Wikipedia corpus with regression thresholds enforced on every PR

Use Cases

  • 01Converting scraped web pages to Markdown for AI context windows and RAG pipelines
  • 02Extracting clean content from documentation sites and technical articles
  • 03Batch processing HTML archives into Markdown for search indexing or analysis
  • 04Parsing structured metadata from web pages for knowledge graphs
  • 05Converting email HTML or rich-text content to plain Markdown
  • 06Preprocessing web content for LLM training or fine-tuning datasets

Related Plugins

View more

html-to-markdown — FAQ

What is the html-to-markdown Claude Code plugin?+

It's a Claude Code plugin that provides AI coding assistants with high-performance HTML-to-Markdown conversion capabilities. The plugin uses a Rust core to handle real-world HTML including malformed markup and extracts structured metadata in the same pass.

How do I install the html-to-markdown plugin in Claude Code?+

Run '/plugin marketplace add xberg-io/html-to-markdown' to add the repository, then '/plugin install html-to-markdown@html-to-markdown' to install the plugin.

Which AI coding assistants support this plugin?+

The plugin works with Claude Code, Codex CLI, Cursor, Gemini CLI, Factory Droid, GitHub Copilot CLI, and opencode. Installation commands vary by client but all reference the xberg-io/html-to-markdown repository.

Does the html-to-markdown plugin require API keys?+

No API keys are required. The plugin runs locally and performs all conversions using the built-in Rust engine without external service calls.

Is the html-to-markdown plugin free to use?+

Yes, it is released under the MIT License and is completely free and open source.

Can the plugin handle broken or malformed HTML?+

Yes, it's specifically designed to process real-world HTML with unclosed tags, CDATA, custom elements, broken entities, nested tables, and mixed encodings without losing content.

How do I install html-to-markdown?+

Open the source repository on GitHub and follow its README. html-to-markdown is a plugin — MCP Agents Market links you directly to the official repo.

Is html-to-markdown free?+

html-to-markdown is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.

Related searches