wdpr
    Preparing search index...

    Interface ContainerData

    Data payload for container elements (paragraphs, bold, headings, divs, etc.).

    Every nestable Wikidot construct (**bold**, [[div]]...[[/div]], + heading, etc.) is represented as an { element: "container", data: ContainerData }.

    The _-prefixed fields are internal parser bookkeeping that gets stripped before the final AST is returned. They coordinate paragraph splitting and span unwrapping during post-processing.

    interface ContainerData {
        _closeSpan?: boolean;
        _emptyParagraphStrip?: boolean;
        _escapedFromParagraph?: boolean;
        _paragraphStrip?: boolean;
        _splitByBlankLine?: boolean;
        attributes: AttributeMap;
        elements: Element[];
        type: ContainerType;
    }
    Index

    Properties

    _closeSpan?: boolean

    Set on an orphaned [[/span]] closing tag (no matching open tag). The paragraph rule uses this to retroactively wrap preceding content in a span. Consumed during post-processing; never present in the final AST.

    _emptyParagraphStrip?: boolean

    Set on empty [[span_]][[/span_]] elements. Acts as a line-break absorber: adjacent line-breaks are removed around this marker. Consumed during post-processing; never present in the final AST.

    _escapedFromParagraph?: boolean

    Set on content that follows a blank line inside [[span_]]. Indicates this content should be extracted outside its paragraph wrapper. Consumed during post-processing; never present in the final AST.

    _paragraphStrip?: boolean

    Set on [[span_]] elements. Signals the post-processor to merge adjacent paragraphs, removing the <p> wrapper around the span's content. Consumed during post-processing; never present in the final AST.

    _splitByBlankLine?: boolean

    Set on the 2nd+ segments of a regular [[span]] that was split by blank lines. Marks where the post-processor should split the enclosing paragraph. Consumed during post-processing; never present in the final AST.

    attributes: AttributeMap

    HTML attributes specified via _ class="..." style="..." syntax

    elements: Element[]

    Child elements nested inside this container

    Identifies the kind of container and determines how it renders