| Crates.io | markdown-that |
| lib.rs | markdown-that |
| version | 0.7.1 |
| created_at | 2025-05-18 15:00:36.043978+00 |
| updated_at | 2025-05-18 15:04:56.822983+00 |
| description | Rust port of popular markdown-it.js library. |
| homepage | https://github.com/z0ne-dev/markdown-that |
| repository | https://github.com/z0ne-dev/markdown-that |
| max_upload_size | |
| id | 1678704 |
| size | 769,844 |
This is a fork of markdown-it-rust with updated and maintained crates.
Below is the original and unmodified README.
Rust port of popular markdown-it.js library.
TL;DR:
@mentions, :emoji:, custom html classes), use this libraryYou can check a demo in your browser (it's Rust compiled into WASM).
let parser = & mut markdown_that::MarkdownThat::new();
markdown_that::plugins::cmark::add(parser);
markdown_that::plugins::extra::add(parser);
let ast = parser.parse("Hello **world**!");
let html = ast.render();
print!("{html}");
// prints "<p>Hello <strong>world</strong>!</p>"
For a guide on how to extend it, see examples folder.
This is an attempt at making a language-agnostic parser. You can probably parse AsciiDoc, reStructuredText or any other plain text format with this without too much effort. I might eventually write these as proof-of-concept.