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.
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 bylist.ts, and the block-level syntax handled here: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.[[ul]]/[[ol]](without[[li]]) is wrapped in a<li style="list-style: none">equivalent (the_noMarkerflag).<br />is appended after the entire block list.[[li]]follows Wikidot rules: single newlines become<br />, including trailing newlines before[[/li]].[[/li]]but before the next[[li]]or close tag is included in the same list item.