Registry / utility / html2md

html2md

JSON →
library0.2.15rscratesunverified

Library and binary to convert simple HTML documents into Markdown.

# Cargo.toml [dependencies] html2md = "0.2.15"
INSTALL
IMPORT
SIG · HTML2MD
H
html2md
utilityrustv0.2.15
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

parse_html
use html2md::parse_html;

Converts a simple HTML string to Markdown.

use html2md::parse_html; fn main() { let html = "<h1>Hello</h1><p>World</p>"; let md = parse_html(html); println!("{}", md); }
Debug
Known issues
gotchaOnly handles simple HTML; complex or malformed HTML may produce incorrect output.
fix
Sanitize input or use a more robust parser for complex cases.
affects: >=0.1.0
Upgrade
Version history
0.2.15latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
html2md — cargo add html2md · libregistry