@wdprlib/decompiler
    Preparing search index...

    Mutable context used during AST-to-Wikidot serialization.

    Manages an output buffer and a two-tier pending-blank-line system that ensures correct spacing between paragraphs and block-level constructs.

    Index

    Constructors

    Properties

    forceLineBreakSyntax: boolean = false

    Force _\n line-break syntax inside lists and definition lists.

    inParagraph: boolean = false

    When true, spans are emitted inline; when false, as block-level span_.

    insideBlockquote: boolean = false

    Suppress extra blank lines after nested blockquotes.

    newline: string

    Accessors

    Methods

    • Discard the pending blank line without emitting it.

      Returns void

    • Emit the pending blank line if one exists (any tier).

      Returns void

    • Return the serialized output for use inside a block container, with trailing double-newlines collapsed to a single newline.

      Returns string

    • Whether the cursor is currently at the start of a line.

      Returns boolean

    • Push inline content. Any pending blank line is emitted first.

      Parameters

      • text: string

      Returns void

    • Push a complete block line (content + newline).

      A block-tier pending blank line is flushed; a paragraph-tier pending blank line is cleared (paragraph → block needs no separator).

      Parameters

      • text: string

      Returns void

    • Push a line (content + newline) as inline content.

      Parameters

      • text: string

      Returns void

    • Request a blank line after a paragraph.

      Unlike requestBlankLine, this is cleared (not emitted) when a block element follows via pushBlockLine, because no blank line is needed between a paragraph and a subsequent block element.

      Returns void