wdpr
    Preparing search index...

    Interface SyntaxTree

    Root of the parsed AST.

    Besides the main elements array, the tree may carry extracted side-channel data (TOC, styles, code blocks, footnotes) that is collected during parsing and used at render time.

    interface SyntaxTree {
        "code-blocks"?: CodeBlockData[];
        elements: Element[];
        footnotes?: Element[][];
        "html-blocks"?: string[];
        styles?: string[];
        "table-of-contents"?: Element[];
    }
    Index

    Properties

    "code-blocks"?: CodeBlockData[]

    Code blocks extracted for deferred syntax highlighting

    elements: Element[]

    Top-level elements of the document

    footnotes?: Element[][]

    Footnote content arrays, indexed by footnote number

    "html-blocks"?: string[]

    Raw HTML from [[html]] blocks (rendered in sandboxed iframes)

    styles?: string[]

    CSS from [[module CSS]] blocks

    "table-of-contents"?: Element[]

    Generated table-of-contents entries (if any headings have has-toc: true)