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 the GFM plugin to the parser
  • Add the GFM plugin to the parser, plus heading anchors