Skip to content

izyuumi/html2md-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4f27175 · Apr 3, 2024

History

71 Commits
Mar 8, 2024
Apr 3, 2024
Apr 3, 2024
Feb 19, 2024
Apr 3, 2024
Apr 3, 2024
Apr 3, 2024
Feb 19, 2024
Mar 23, 2024
Mar 21, 2024

Repository files navigation

html2md-rs

Parses HTML and converts it to markdown.

Usage

use html2md_rs::to_md::from_html_to_md;

fn main() {
    let html = "<h1>Hello, World!</h1>";
    let md = from_html_to_md(html);
    assert_eq!(md, "# Hello, World!");
}

Markdown Convention

There are many markdown conventions/standards out there. This project references the CommonMark Spec.

Supported HTML tags

Check the supported HTML tags here. Unsupported HTML tags will be parsed as NodeType::Unknown(String).

License

This project is licensed under the MIT License - see the LICENSE file for details.