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.
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.