Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 452 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 452 Bytes

fast_html2md

The fastest Rust html to markdown transformer.

cargo add fast_html2md

You can use a html5ever or lol_html to transform.

Using the rewriter with the default rewriter feature flag.

let md = html2md::rewrite_html("<p>JAMES</p>", false);
assert_eq!(md, "JAMES")

Using the scraper with the scraper feature flag.

let md = html2md::parse_html("<p>JAMES</p>", false);
assert_eq!(md, "JAMES")

License

MIT