列表

示例

使用破折号(-)或星号(*)表示无序列表项。

  • 无序列表项 1
  • 无序列表项 2
  • 无序列表项 3
  1. 有序列表项 1。句号和第一个字母之间的两个空格有助于对齐。

  2. 有序列表项 2。让我们在其中加一个注意。

    注意

  3. 有序列表项 3,其中包含一个代码块。代码块之前需要一个空行。

    $ docker run hello-world
  4. 有序列表项 4,其中包含一个无序列表,该无序列表内又包含一个有序列表。

    • 子项 1

    • 子项 2

      1. 子子项 1
      2. 子子项 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  |
页面选项