清单
您可以将项目组织成有序和无序列表。
有序列表
要创建有序列表,请在订单项中添加数字和句点。数字不必按数字顺序排列,但列表应以数字开头。
| Markdown | HTML | 渲染输出 |
|---|---|---|
1. First item |
<ol> |
|
1. First item |
<ol> |
|
1. First item |
<ol> |
|
1. First item |
<ol> |
|
无序列表
要创建无序列表,请在订单项前添加破折号(-),星号(*)或加号(+)。缩进一个或多个项目以创建嵌套列表。
| Markdown | HTML | 渲染输出 |
|---|---|---|
- First item |
<ul> |
|
* First item |
<ul> |
|
+ First item |
<ul> |
|
- First item |
<ul> |
|
在列表中添加元素
要在保留列表连续性的同时在列表中添加另一个元素,请将该元素缩进四个空格或一个制表符,如以下示例所示。
段落
* This is the first list item.
* Here's the second list item.I need to add another paragraph below the second list item.* And here's the third list item.
呈现的输出如下所示:
- 这是第一个列表项。
-
这是第二个列表项。
我需要在第二个列表项下面添加另一段。
- 这是第三个列表项。