2 stable releases
new 1.0.1 | Dec 13, 2024 |
---|---|
1.0.0 | Sep 12, 2024 |
#2632 in Parser implementations
747 downloads per month
15KB
markdown-it-sup.rs
A markdown-it
plugin to process superscript.
To load the plugin:
let mut parser = markdown_it::MarkdownIt::new();
markdown_it::plugins::cmark::add(&mut parser);
markdown_it_sup::add(&mut parser);
let html = parser.parse("Markdown^TM^").xrender();
assert_eq!(html, String::from("<p>Markdown<sup>TM</sup></p>\n"));
lib.rs
:
A markdown-it
plugin to process superscript.
To load the plugin:
let mut parser = markdown_it::MarkdownIt::new();
markdown_it::plugins::cmark::add(&mut parser);
markdown_it_sup::add(&mut parser);
let html = parser.parse("Markdown^TM^").xrender();
assert_eq!(html, String::from("<p>Markdown<sup>TM</sup></p>\n"));
Dependencies
~5–13MB
~190K SLoC