3 stable releases

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

#2742 in Parser implementations

Download history 292/week @ 2025-02-01 242/week @ 2025-02-08 180/week @ 2025-02-15 294/week @ 2025-02-22 261/week @ 2025-03-01 224/week @ 2025-03-08 177/week @ 2025-03-15 210/week @ 2025-03-22 220/week @ 2025-03-29 108/week @ 2025-04-05 68/week @ 2025-04-12 109/week @ 2025-04-19 98/week @ 2025-04-26 136/week @ 2025-05-03 176/week @ 2025-05-10 93/week @ 2025-05-17

522 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

~7–15MB
~213K SLoC