wdpr
    Preparing search index...

    Module parser/rules/inline/footnote

    Parses the Wikidot footnote syntax: [[footnote]]content[[/footnote]].

    Footnotes work in two parts: the inline [[footnote]] block produces a numbered superscript reference marker at the point of use, while the actual footnote content is collected separately and rendered by a [[footnoteblock]] element (typically at the bottom of the page).

    Footnote content supports multiple paragraphs:

    • The first paragraph is rendered as inline content (no wrapping <p> tag)
    • Subsequent paragraphs (separated by blank lines) are each wrapped in <p> tags, matching Wikidot's rendering behavior
    • Single newlines within a paragraph become <br /> elements

    The parsed footnote content is pushed into ctx.footnotes (an array of Element arrays) so the renderer can later assign sequential numbers and generate the footnote block.

    Produces a simple "footnote" AST element (a marker with no data) at the inline reference point.

    Variables

    footnoteRule