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 π€
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
π Rust with cargo
# Cargo.toml
[dependencies]
mdka = "1"
// 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.
//
}
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
# awesome.py
from mdka import md_from_html
print(md_from_html("<p>Hello, world.</p>"))
#
β¦
Top comments (0)