Skip to content

spider-rs/html2md

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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