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

#2080 in Parser implementations

Download history 106/week @ 2024-07-01 19/week @ 2024-07-08 160/week @ 2024-07-15 15/week @ 2024-07-22 78/week @ 2024-07-29 15/week @ 2024-08-05 18/week @ 2024-08-12 23/week @ 2024-08-19 43/week @ 2024-08-26 200/week @ 2024-09-02 210/week @ 2024-09-09 193/week @ 2024-09-16 318/week @ 2024-09-23 295/week @ 2024-09-30 205/week @ 2024-10-07 137/week @ 2024-10-14

960 downloads per month
Used in 2 crates

Apache-2.0

27KB
626 lines

mdka

HTML to Markdown (MD) converter written in Rust.

crates.io Documentation License Dependency Status

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

Depends on Servo's html5ever / markup5ever.

Dependencies

~1.5–6.5MB
~35K SLoC