mdka v1.5 is out - HTML to Markdown converter developed with Rust
nabbisen

nabbisen @nabbisen

About: Founder of Scqr Inc. (scqr.net) Apps dev and c/s monk. IT ストラテジスト. システム監査技術者. 登録セキスペ. Interested: Social relationships, cybersecurity. OpenBSD/Rust etc.

Joined:
Jul 29, 2018

mdka v1.5 is out - HTML to Markdown converter developed with Rust

Publish Date: May 22
4 0

mdka v1.5 is released. HTML to Markdown converter written in Rust lang.

Bindings for Node.js are introduced in addition to those for Python.

from Rust lover in training 🤍

GitHub logo nabbisen / mdka-rs

HTML to Markdown (MD) converter written in Rust

mdka

HTML to Markdown (MD) converter written in Rust.

crates.io Documentation Dependency Status Executable PyPi License

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

🌠 Rust with cargo

# Cargo.toml
[dependencies]
mdka = "1"
Enter fullscreen mode Exit fullscreen mode
// 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.
    // 
}
Enter fullscreen mode Exit fullscreen mode

For more details about functions, the docs live here.

🧩 Executable

Assets in Releases offer executables for multiple platforms. → For usage

🧩 Python integration

Bindings for Python are supported. → For more examples

$ pip install mdka
Enter fullscreen mode Exit fullscreen mode
# awesome.py
from mdka import md_from_html
print(md_from_html("<p>Hello, world.</p>"))
#
Enter fullscreen mode Exit fullscreen mode

Comments 0 total

    Add comment