wdpr
    Preparing search index...

    Module parser/rules/inline/math-inline

    Parses the Wikidot inline math syntax: [[$ LaTeX $]].

    Inline math renders a LaTeX expression inline with the surrounding text (as opposed to the block-level [[math]] which produces a display-mode equation).

    The LaTeX source is captured as-is between the $ delimiters and stored in the AST for later rendering by a LaTeX engine (e.g. KaTeX or MathJax).

    Newlines are NOT allowed within inline math; if a NEWLINE token is encountered before the closing $]], the parse fails.

    Wikidot syntax: [[$ E = mc^2 $]]

    Produces a "math-inline" AST element with data["latex-source"] containing the trimmed LaTeX string.

    Variables

    mathInlineRule