2 stable releases

1.0.1 Dec 13, 2024
1.0.0 Sep 12, 2024

#2416 in Parser implementations

Download history 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 293/week @ 2024-12-07 272/week @ 2024-12-14 68/week @ 2024-12-21 85/week @ 2024-12-28 149/week @ 2025-01-04 301/week @ 2025-01-11 236/week @ 2025-01-18

786 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