Crate markdown_it_deflist
source ·Expand description
Plugin to parse definition lists
let md = &mut markdown_it::MarkdownIt::new();
markdown_it::plugins::cmark::add(md);
markdown_it_deflist::add(md);
assert_eq!(
md.parse("term\n: definition").render(),
"<dl>\n<dt>term</dt>\n<dd>definition</dd>\n</dl>\n"
);
Structs
- An extension for the block subparser.
Functions
- Add the definition list plugin to the parser