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§
- back_
refs - Plugin to add anchor(s) to footnote definitions, with links back to the reference(s).
- collect
- Plugin to collect footnote definitions, removing duplicate/unreferenced ones, and move them to be the last child of the root node.
- definitions
- Plugin to parse footnote definitions
- inline
- Plugin to parse inline footnotes
- references
- Plugin to parse footnote references
Structs§
- Footnote
Map - The set of parsed footnote definition labels, stored in the root node.
Functions§
- add
- Add the full footnote plugin to the parser