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§

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§

FootnoteMap
The set of parsed footnote definition labels, stored in the root node.

Functions§

add
Add the full footnote plugin to the parser