2 stable releases

new 1.0.1 Dec 13, 2024
1.0.0 Sep 12, 2024

#2632 in Parser implementations

Download history 98/week @ 2024-09-07 45/week @ 2024-09-14 19/week @ 2024-09-21 16/week @ 2024-09-28 2/week @ 2024-10-05 6/week @ 2024-10-12 17/week @ 2024-10-19 221/week @ 2024-10-26 237/week @ 2024-11-02 242/week @ 2024-11-09 172/week @ 2024-11-16 206/week @ 2024-11-23 140/week @ 2024-11-30 185/week @ 2024-12-07

747 downloads per month

GPL-3.0 license

15KB

License Latest version Downloads for latest version

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