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

Functions

  • Add the definition list plugin to the parser