2 stable releases

new 1.0.1 Dec 13, 2024
1.0.0 Sep 12, 2024

#2677 in Parser implementations

Download history 99/week @ 2024-09-07 44/week @ 2024-09-14 17/week @ 2024-09-21 14/week @ 2024-09-28 2/week @ 2024-10-05 6/week @ 2024-10-12 17/week @ 2024-10-19 221/week @ 2024-10-26 236/week @ 2024-11-02 242/week @ 2024-11-09 173/week @ 2024-11-16 207/week @ 2024-11-23 140/week @ 2024-11-30 186/week @ 2024-12-07

750 downloads per month

GPL-3.0 license

15KB

License Latest version Downloads for latest version

markdown-it-sub.rs

A markdown-it plugin to process subscript.

To load the plugin:

let mut parser = markdown_it::MarkdownIt::new();
markdown_it::plugins::cmark::add(&mut parser);

markdown_it_sub::add(&mut parser);

let html = parser.parse("log~2~(a)").xrender();
assert_eq!(html, "<p>log<sub>2</sub>(a)</p>\n");

lib.rs:

A markdown-it plugin to process subscript.

To load the plugin:

let mut parser = markdown_it::MarkdownIt::new();
markdown_it::plugins::cmark::add(&mut parser);

markdown_it_sub::add(&mut parser);

let html = parser.parse("log~2~(a)").xrender();
assert_eq!(html, "<p>log<sub>2</sub>(a)</p>\n");

Dependencies

~5–13MB
~190K SLoC