2 stable releases

1.0.1 Dec 13, 2024
1.0.0 Sep 12, 2024

#2396 in Parser implementations

Download history 18/week @ 2024-09-23 15/week @ 2024-09-30 7/week @ 2024-10-14 38/week @ 2024-10-21 226/week @ 2024-10-28 228/week @ 2024-11-04 247/week @ 2024-11-11 182/week @ 2024-11-18 207/week @ 2024-11-25 142/week @ 2024-12-02 321/week @ 2024-12-09 235/week @ 2024-12-16 67/week @ 2024-12-23 70/week @ 2024-12-30 154/week @ 2025-01-06

545 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–14MB
~189K SLoC