GitHub - letmutex/htmd: A turndown.js inspired HTML to Markdown converter for Rust
HTMD
An HTML to Markdown converter for Rust, inspired by turndown.js.
Features
Rich options, same as turndown.js
Reliable, it passes all test cases of turndown.js
Minimum dependencies, it uses only html5ever
Fast, it takes less than 200ms to convert a ~1.4MB Wikipedia page on an i5 7th gen CPU
Usages
Add the dependency
htmd = { git = "https://github.com/letmutex/htmd" }
Basic
use htmd::HtmlToMarkdown;
fn main() {
assert_eq!("# Heading", HtmlToMarkdown::new().convert("<h1>Heading</h1>").unwrap())...
Read more at github.com