Crates.io | markdown-it-tasklist |
lib.rs | markdown-it-tasklist |
version | 0.2.0 |
source | src |
created_at | 2023-06-21 08:18:45.764432 |
updated_at | 2023-08-03 16:56:15.508915 |
description | A markdown-it plugin for parsing GFM tasklists |
homepage | |
repository | https://github.com/chrisjsewell/markdown-it-plugins.rs |
max_upload_size | |
id | 895997 |
size | 24,726 |
A markdown-it.rs plugin to process GFM tasklists.
- [x] foo
- [ ] bar
To load the plugin:
let parser = &mut markdown_it::MarkdownIt::new();
markdown_it::plugins::cmark::add(parser);
markdown_it_tasklist::add(parser);
// or with checkboxes disabled
// markdown_it_tasklist::add_disabled(parser);
let ast = parser.parse("- [x] foo");
let html = ast.render();