markdown-it-tasklist

Crates.iomarkdown-it-tasklist
lib.rsmarkdown-it-tasklist
version0.2.0
sourcesrc
created_at2023-06-21 08:18:45.764432
updated_at2023-08-03 16:56:15.508915
descriptionA markdown-it plugin for parsing GFM tasklists
homepage
repositoryhttps://github.com/chrisjsewell/markdown-it-plugins.rs
max_upload_size
id895997
size24,726
Chris Sewell (chrisjsewell)

documentation

README

markdown-it-tasklist

crates.io

A markdown-it.rs plugin to process GFM tasklists.

- [x] foo
- [ ] bar

Usage

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();
Commit count: 43

cargo fmt