#markdown-it-plugin #markdown #markdown-it #parser #gfm

markdown-it-gfm

用于解析定义列表的 markdown-it 插件

1 个不稳定版本

0.1.0 2023年8月4日

#5#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次下载

Apache-2.0

110KB
455

markdown-it-gfm

crates.io

markdown-it.rs 的插件,用于实现 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");

lib.rs:

一个用于解析 Github Flavoured Markdown 的 [markdown_it] 插件

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

依赖项

~8.5MB
~182K SLoC