Markdown syntax: Lists
Unordered Lists
Unordered lists use asterisks *, plus signs +, and hyphens (minus) - followed by a space or a tab.
* Item 1
* Item 2
* Item 3
For multi-level lists, align sub-lists with the text of the parent item.
* Item 1
••* Sub-item 1
••* Sub-item 2
••••* Another sub-item
* Item 2
Items can have multiple paragraphs. As before, align sub-paragraphs to the text of the parent item.
* This is the first paragraph.
••This is the second paragraph.
••It is aligned with the text of the parent element.
Bullets can be customized using an image list. The markdown controls look for the image in the Styles.List.Images property and render it instead of the default bullet mark ●. This property can be either a name (requires Delphi 10.3 Rio or newer) or an index.
Ordered lists
Ordered lists use numbers followed by a period 1.. The period is mandatory at the first level, but can be omitted at level 2 and above. Both 1.1. and 1.1 are valid.
Numbering can be automatic, depending on the Styles.List.Numbering property. Note that inserting a new higher-level element or paragraph breaks automatic numbering, restarting at 1 for the next element or list.
1. Item 1
•••1.1. Sub-item 1
2. Item 2
This paragraph interrupts the automatic numbering, which restarts at 1.
1. Item 1
•••1.1. Sub-item 1
2. Item 2
Task lists
Task lists allow you to create a list of items with checkboxes. To create a task list, add an hyphen - followed by a space and another space enclosed in square brackets - [ ] before the item text. To select a checkbox, add an x (not case-sensitive) in between the brackets - [x].
- [ ] Item 1
- [x] Item 2
- [ ] Item 3
••••••- [ ] Sub-item 1
••••••- [x] Sub-item 2
- [x] Item 4
Like bulleted (unordered) lists, checkboxes can be customized in the same way using an image list.