| Crates.io | html2md-rs |
| lib.rs | html2md-rs |
| version | 0.10.2 |
| created_at | 2024-02-20 18:27:46.173036+00 |
| updated_at | 2024-12-10 02:22:46.403968+00 |
| description | Convert HTML to Markdown |
| homepage | https://github.com/izyumidev/html2md-rs |
| repository | https://github.com/izyumidev/html2md-rs |
| max_upload_size | |
| id | 1146667 |
| size | 79,366 |
Parses HTML and converts it to markdown.
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!");
}
There are many markdown conventions/standards out there. This project references the CommonMark Spec.
Check the supported HTML tags here. Unsupported HTML tags will be parsed as NodeType::Unknown(String).
This project is licensed under the MIT License - see the LICENSE file for details.