1 unstable release

0.1.0 Aug 4, 2023

#5 in #gfm

Download history 27/week @ 2024-03-10 12/week @ 2024-03-17 22/week @ 2024-03-24 56/week @ 2024-03-31 14/week @ 2024-04-07 22/week @ 2024-04-14 15/week @ 2024-04-21 7/week @ 2024-04-28 20/week @ 2024-05-05 8/week @ 2024-05-12 2/week @ 2024-05-19 22/week @ 2024-05-26 20/week @ 2024-06-02 14/week @ 2024-06-09 25/week @ 2024-06-16 14/week @ 2024-06-23

74 downloads per month

Apache-2.0

110KB
455 lines

markdown-it-gfm

crates.io

A markdown-it.rs plugin to implement Github Flavoured Markdown.

Usage

To load the plugin:

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

let root = parser.parse("https://github.github.com/gfm");
assert_eq!(root.render(), "<p><a href=\"https://github.github.com/gfm\">https://github.github.com/gfm</a></p>\n");

lib.rs:

A [markdown_it] plugin for parsing Github Flavoured Markdown

let parser = &mut markdown_it::MarkdownIt::new();
markdown_it_gfm::add(parser);
let root = parser.parse("https://github.github.com/gfm");
assert_eq!(root.render(), "<p><a href=\"https://github.github.com/gfm\">https://github.github.com/gfm</a></p>\n");

Dependencies

~8.5MB
~182K SLoC