1 unstable release
0.1.0 | Aug 4, 2023 |
---|
#5 in #gfm
74 downloads per month
110KB
455 lines
markdown-it-gfm
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