3 stable releases

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

#1924 in Parser implementations

Download history 163/week @ 2025-03-16 224/week @ 2025-03-23 209/week @ 2025-03-30 104/week @ 2025-04-06 66/week @ 2025-04-13 122/week @ 2025-04-20 85/week @ 2025-04-27 144/week @ 2025-05-04 177/week @ 2025-05-11 99/week @ 2025-05-18 152/week @ 2025-05-25 191/week @ 2025-06-01 246/week @ 2025-06-08 177/week @ 2025-06-15 224/week @ 2025-06-22 92/week @ 2025-06-29

762 downloads per month

GPL-3.0 license

20KB
114 lines

License Latest version Downloads for latest version

markdown-it-ruby.rs

A markdown-it plugin to process ruby text.

To load the plugin:

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

markdown_it_ruby::add(&mut parser);

let html = parser.parse("{漢|Kan}{字|ji}").xrender();
assert_eq!(html, String::from("<p><ruby>漢<rp>(</rp><rt>Kan</rt><rp>)</rp></ruby><ruby>字<rp>(</rp><rt>ji</rt><rp>)</rp></ruby></p>\n"));

Dependencies

~6–14MB
~194K SLoC