#plugin #markdown-it #superscript

markdown-it-sup

A markdown-it plugin for parsing superscripts

3 stable releases

1.0.2 Feb 22, 2025
1.0.1 Dec 13, 2024
1.0.0 Sep 12, 2024

#2394 in Parser implementations

Download history 192/week @ 2025-06-25 93/week @ 2025-07-02 211/week @ 2025-07-09 156/week @ 2025-07-16 178/week @ 2025-07-23 74/week @ 2025-07-30 61/week @ 2025-08-06 87/week @ 2025-08-13 105/week @ 2025-08-20 123/week @ 2025-08-27 180/week @ 2025-09-03 361/week @ 2025-09-10 185/week @ 2025-09-17 143/week @ 2025-09-24 191/week @ 2025-10-01 261/week @ 2025-10-08

839 downloads per month

GPL-3.0 license

19KB

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"));

Dependencies

~5–15MB
~181K SLoC