Expand description

A markdown_it plugin for parsing footnotes

let parser = &mut markdown_it::MarkdownIt::new();
let node = parser.parse("[^note]\n\n[^note]: A footnote\n");


  • 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


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


  • Add the full footnote plugin to the parser