Crate markdown_it_footnote
source ·Expand description
A markdown_it plugin for parsing footnotes
let parser = &mut markdown_it::MarkdownIt::new();
markdown_it_footnote::add(parser);
let node = parser.parse("[^note]\n\n[^note]: A footnote\n");
Modules
- Plugin to add anchor(s) to footnote definitions, with links back to the reference(s).
- Plugin to collect footnote definitions, removing duplicate/unreferenced ones, and move them to be the last child of the root node.
- Plugin to parse footnote definitions
- Plugin to parse inline footnotes
- Plugin to parse footnote references
Structs
- The set of parsed footnote definition labels, stored in the root node.
Functions
- Add the full footnote plugin to the parser