wdpr
    Preparing search index...

    Module parser/rules/block/block-list

    Block rule for the explicit list syntax: [[ul]]/[[ol]] with [[li]] items.

    Wikidot supports two kinds of lists: the lightweight "marker" syntax (* item, # item) handled by list.ts, and the block-level syntax handled here:

    [[ul]]
    [[li]]Item 1[[/li]]
    [[li]]Item 2[[/li]]
    [[/ul]]

    Block lists can carry HTML attributes on both the list wrapper and individual items, and support arbitrary nesting. Content inside [[li]] may include inline markup, block elements (divs, nested tables, etc.), and even nested [[ul]]/[[ol]] sub-lists.

    Key Wikidot-specific behaviors reproduced here:

    • [[li_]] is NOT a valid tag and is treated as plain text.
    • Bare content inside [[ul]]/[[ol]] (without [[li]]) is wrapped in a <li style="list-style: none"> equivalent (the _noMarker flag).
    • A <br /> is appended after the entire block list.
    • Newline handling inside [[li]] follows Wikidot rules: single newlines become <br />, including trailing newlines before [[/li]].
    • Content after [[/li]] but before the next [[li]] or close tag is included in the same list item.

    Variables

    blockListRule