#markdown-it

markdown-it-gfm

A markdown-it plugin for parsing definition lists

1 unstable release

0.1.0 Aug 4, 2023

#1662 in Text processing

Download history 7/week @ 2024-07-22 30/week @ 2024-07-29 12/week @ 2024-08-05 16/week @ 2024-08-12 7/week @ 2024-08-19 17/week @ 2024-08-26 6/week @ 2024-09-02 20/week @ 2024-09-09 14/week @ 2024-09-16 32/week @ 2024-09-23 20/week @ 2024-09-30 20/week @ 2024-10-07 2/week @ 2024-10-14 155/week @ 2024-10-21 87/week @ 2024-10-28 8/week @ 2024-11-04

253 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

~7–15MB
~217K SLoC