Lists
Unordered, ordered, nested, and task lists are supported.
Syntax
Unordered
markdown
- Item 1
- Item 2Ordered
markdown
1. First
2. SecondTask Lists
markdown
- [x] Done item
- [ ] Pending itemNested
markdown
- Parent
- Child
1. GrandchildRendering Behavior
list.bulletCharapplies to unordered list markers only.- Ordered and task markers are rendered by their own logic.
- Indentation per level uses
list.indentSize(fallbacks topage.indentvia option normalization). - Spacing precedence:
spacing.betweenListItemshas priority.list.itemSpacingis fallback when global spacing is not set.
Relevant Options
| Option | Effect |
|---|---|
list.bulletChar | Marker for unordered list items |
list.indentSize | Additional indent per nesting level |
list.itemSpacing | Fallback per-item spacing |
spacing.betweenListItems | Primary per-item spacing |
spacing.afterList | Spacing after full list block |
Example
ts
list: {
bulletChar: '- ',
indentSize: 8,
itemSpacing: 1,
},
spacing: {
betweenListItems: 2,
}Try It
Interactive
Try this element in the Playground.