wdpr
    Preparing search index...
    • Parses mixed inline/block content until a close condition is met, WITHOUT paragraph wrapping.

      This is used for div_ (paragraph strip mode) where newlines become <br /> elements rather than paragraph separators. Blank lines (multiple consecutive newlines) are collapsed into a single <br />.

      Block-level elements (nested div, collapsible, etc.) are mixed directly into the inline element stream. Newlines immediately before a BLOCK_OPEN or BLOCK_END_OPEN are silently consumed (no <br /> generated).

      Trailing line-break elements are stripped from the result.

      Parameters

      • ctx: ParseContext

        Parse context positioned at the start of the body.

      • closeCondition: (ctx: ParseContext) => boolean

        Predicate that signals the end of the content.

      Returns BlockParseResult

      Parsed elements and total tokens consumed.