Lists & Tables
Lists
You can organize items into ordered and unordered lists.
Unordered Lists
To create an unordered list, add dashes -
, asterisk *
, or plus sign +
in front of line items. Indent one or more items to create a nested list.
- Item 1
- Item 2
- Sub-item 1
- Sub-item 2
- Item 3
Code:
- Item 1
- Item 2
- Sub-item 1
- Sub-item 2
- Item 3
List items follow Markdown syntax.
Ordered Lists
To create an ordered list, add line items with numbers followed by periods.
. The numbers don’t have to be in numerical order, but the list should start with the number one.
- Item 1
- Item 2
- Sub-item 1
- Sub-item 2
- Item 3
- Sub-item 1
- Sub-item 2
Code:
1. Item 1
2. Item 2
- Sub-item 1
- Sub-item 2
3. Item 3
1. Sub-item 1
2. Sub-item 2
List items follow Markdown syntax.
Task Lists
Create an incomplete task by adding a space and the task description inside [ ]
.
Indicate a completed task by adding an x
inside [ ]
.
- Task 1
- Completed Task 1
- Task 2
- Subtask 1
- Completed Subtask 1
Code:
- [ ] Task 1
- [x] Completed Task 1
- [ ] Task 2
- [ ] Subtask 1
- [x] Completed Subtask 1
Task descriptions follow Markdown syntax.
Tables
To add a table, use three or more hyphens ---
to create each column’s header, and use pipes |
to separate each column. For compatibility, you should also add a pipe on either end of the row.
Name | Age | Gender | |
---|---|---|---|
Zhang San | 25 | Male | zhangsan@example.com |
Li Si | 30 | Female | lisi@example.com |
Wang Wu | 35 | Male | wangwu@example.com |
Code:
| Name | Age | Gender | Email |
| --- | --- | --- | --- |
| Zhang San | 25 | Male | [zhangsan@example.com](mailto:zhangsan@example.com) |
| Li Si | 30 | Female | [lisi@example.com](mailto:lisi@example.com) |
| Wang Wu | 35 | Male | [wangwu@example.com](mailto:wangwu@example.com) |
Table content follows Markdown syntax.