Crates.io | mdka |
lib.rs | mdka |
version | 1.2.10 |
source | src |
created_at | 2024-01-04 01:42:51.990828 |
updated_at | 2024-07-15 05:48:09.798003 |
description | HTML to Markdown converter |
homepage | |
repository | https://github.com/nabbisen/mdka-rs |
max_upload_size | |
id | 1087989 |
size | 82,639 |
HTML to Markdown (MD) converter written in Rust.
A kind of text manipulator named mdka. "ka" means "化 (か)" pointing to conversion.
Designed with in mind:
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.
//
}