Skip to content

RustedBytes/h2md

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

h2md

High-performance HTML to Markdown converter written in Rust.

Install

[dependencies]
h2md = "0.1"

Usage

use h2md::convert;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let result = convert("<h1>Hello</h1><p>From HTML.</p>", None)?;
    println!("{}", result.content.unwrap_or_default());
    Ok(())
}

Development

cargo test
cargo clippy --workspace --all-targets

License

MIT

About

a fork of html-to-markdown with speed enhancements

Resources

License

Stars

Watchers

Forks

Contributors