@wdprlib/parser
    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 excluded (to prevent nesting). Otherwise, parse inline content until close tag or end of line (inline form).
    4. Consume the [[/collapsible]] closing tag.
    5. Consume any orphaned [[/collapsible]] tags that follow, converting them to <br /> + literal text.
    6. Derive show-top / show-bottom booleans from the hideLocation attribute.