Crate markdown_it_gfm

Crate markdown_it_gfm 

Source
Expand description

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");

Functionsยง

add
Add the GFM plugin to the parser
add_with_anchors
Add the GFM plugin to the parser, plus heading anchors