mdka

Crates.iomdka
lib.rsmdka
version1.2.10
sourcesrc
created_at2024-01-04 01:42:51.990828
updated_at2024-07-15 05:48:09.798003
descriptionHTML to Markdown converter
homepage
repositoryhttps://github.com/nabbisen/mdka-rs
max_upload_size
id1087989
size82,639
nabbisen (nabbisen)

documentation

README

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.

Commit count: 64

cargo fmt