wdpr
    Preparing search index...

    Module parser/rules/block/math

    Block rule for the Wikidot math block: [[math name]]...[[/math]].

    A math block captures LaTeX source code between the tags and stores it as a math element in the AST. The content is not parsed for inline markup -- it is collected as raw text.

    An optional name parameter after "math" can be used to label the equation (e.g. [[math euler]]). This name can then be referenced elsewhere in the document.

    Special handling for BACKSLASH_BREAK tokens: the preprocessor converts \\\n (LaTeX line break followed by newline) into a special token. Inside math blocks, this must be restored to \\\n since it is valid LaTeX, not a Wikidot line continuation.

    Empty math blocks (no LaTeX content after trimming) are treated as invalid and the rule fails.

    Variables

    mathBlockRule