列表
目錄
示例
使用破折號(-
)或星號(*
)表示無序列表項。
- 無序列表項 1
- 無序列表項 2
- 無序列表項 3
有序列表項 1。句號和第一個字母之間的兩個空格有助於對齊。
有序列表項 2。讓我們在其中加一個注意。
注意
有序列表項 3,其中包含一個程式碼塊。程式碼塊之前需要一個空行。
$ docker run hello-world
有序列表項 4,其中包含一個無序列表,該無序列表內又包含一個有序列表。
子項 1
子項 2
- 子子項 1
- 子子項 2,其中包含一個表格。縮排非常重要。
表頭 1 表頭 2 項 1 項 2 項 3 項 4
Markdown
- Bullet list item 1
- Bullet list item 2
- Bullet list item 3
1. Numbered list item 1. Two spaces between the period and the first letter
helps with alignment.
2. Numbered list item 2. Let's put a note in it.
> [!NOTE]: We did it!
3. Numbered list item 3 with a code block in it. You need the blank line before
the code block happens.
```bash
$ docker run hello-world
```
4. Numbered list item 4 with a bullet list inside it and a numbered list
inside that.
- Sub-item 1
- Sub-item 2
1. Sub-sub-item 1
2. Sub-sub-item-2 with a table inside it.
Indentation is super important.
| Header 1 | Header 2 |
| -------- | -------- |
| Thing 1 | Thing 2 |
| Thing 3 | Thing 4 |