39 releases (22 stable)
1.2.10 | Jul 15, 2024 |
---|---|
1.2.5 | May 21, 2024 |
1.2.4 | Feb 27, 2024 |
0.5.1 | Jan 6, 2024 |
#1939 in Parser implementations
461 downloads per month
Used in 2 crates
27KB
626 lines
mdka
HTML to Markdown (MD) converter written in Rust.
Summary
A kind of text manipulator named mdka. "ka" means "化 (か)" pointing to conversion.
Designed with in mind:
- Fast speed
- Low memory consumption
- Easy usage
Usage
Cargo.toml
[dependencies]
mdka = "1.2"
awesome.rs
use mdka::from_html
fn awesome_fn() {
let input = r#"
<h1>heading 1</h1>
<p>Hello, world.</p>"#;
let ret = from_html(input);
println!("{}", ret);
// # heading 1
//
// Hello, world.
//
}
Acknowledgements
Dependencies
~1.5–6.5MB
~35K SLoC