Back to API Reference
Class
MarkdownListParseRule
sealed
Inherits:ParseRule
Parses Markdown-style lists (bulleted and numbered).
Remarks
Supports unordered lists with -, *, + markers and ordered lists with 1., 2), etc. Nested lists are detected by indentation level. An item ends at the first line break unless the following line is indented deeper than the item's own indent (which extends the item to cover an indented continuation or a nested list). CommonMark-style lazy continuation across non-indented lines is not supported — a non-indented line after an item is treated as a separate paragraph. List syntax has no close marker: matched ranges carry closeStart = closeEnd = -1 (closed by design), so match consumers never mistake an item for an unclosed pair.
Anchors at the line start but accepts a probe anywhere inside the leading indent or at the marker itself (walking back over spaces to verify the line start) — so the parser's trigger-char jump scan, which lands directly on the marker character, still matches indented items. The emitted range always spans from the line start.
