Block rule for Wikidot marker-based lists (* item, # item).
Wikidot lists use leading * (bullet) or # (numbered) markers at the
start of a line. Nesting is achieved by prepending spaces:
* Item1 * Nestedbullet # Nestednumbered * Item2
The depth of each item is determined by the number of leading spaces
before the marker. Mixed bullet/numbered lists are supported: when the
list type changes at the same depth, a new sub-list is created.
The flat depth-annotated items are converted into a recursive tree by
processDepths(), then transformed into nested list AST elements
by buildListElement().
Maximum nesting depth is capped at MAX_LIST_DEPTH (20).
Block rule for Wikidot marker-based lists (
* item,# item).Wikidot lists use leading
*(bullet) or#(numbered) markers at the start of a line. Nesting is achieved by prepending spaces:The depth of each item is determined by the number of leading spaces before the marker. Mixed bullet/numbered lists are supported: when the list type changes at the same depth, a new sub-list is created.
The flat depth-annotated items are converted into a recursive tree by
processDepths(), then transformed into nestedlistAST elements bybuildListElement().Maximum nesting depth is capped at
MAX_LIST_DEPTH(20).