2 stable releases

1.0.1 Dec 13, 2024
1.0.0 Sep 12, 2024

#2461 in Parser implementations

Download history 18/week @ 2024-09-19 13/week @ 2024-09-26 6/week @ 2024-10-03 3/week @ 2024-10-10 13/week @ 2024-10-17 141/week @ 2024-10-24 253/week @ 2024-10-31 234/week @ 2024-11-07 188/week @ 2024-11-14 191/week @ 2024-11-21 194/week @ 2024-11-28 167/week @ 2024-12-05 315/week @ 2024-12-12 160/week @ 2024-12-19 72/week @ 2024-12-26 74/week @ 2025-01-02

640 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
~188K SLoC