wdpr
    Preparing search index...
    closeSpanRule: InlineRule = ...

    Inline rule for handling orphaned [[/span]] closing tags.

    When a span is split across paragraphs by a blank line, the closing [[/span]] tag appears without a matching opening tag in the current inline context. This rule detects such orphaned closing tags and produces a special marker element with _closeSpan: true.

    The paragraph parser uses this marker to retroactively wrap all preceding inline content in the current paragraph into a span, replicating Wikidot's behavior for paragraph-split spans.

    Triggered by a BLOCK_END_OPEN ([[/) token, and only matches when the block name is span.