wdpr
    Preparing search index...
    collapsibleRule: BlockRule = ...

    Block rule for [[collapsible ...]]...[[/collapsible]].

    Parsing strategy:

    1. Match BLOCK_OPEN + name "collapsible".
    2. Parse multiline attributes (show, hide, folded, hideLocation, etc.).
    3. If a NEWLINE follows the opening tag, parse body as block content with the collapsible rule itself removed (to prevent nesting). Otherwise, parse inline content until close tag or end of line (inline form).
    4. Merge consecutive paragraphs in the body via mergeParagraphs().
    5. Consume the [[/collapsible]] closing tag.
    6. Consume any orphaned [[/collapsible]] tags that follow, converting them to <br /> + literal text.
    7. Derive show-top / show-bottom booleans from the hideLocation attribute.