在 README.md 的 Github 列表项中正确缩进代码
indent code correctly in Github list item in README.md
我正在 github 中为我的 Repo 创建 README.md
文件,但我无法像 那样缩进 代码块 ]list items 从左边缩进,我正在尝试 bottom 我希望这段代码以 list items[=] 的缩进开始=23=].
* list
* Item one
* ``` codes here..```
它也没有用 :( 不知道为什么。
Skip a line and indent eight spaces. Eight spaces will trigger the code block.
- 列表
- 项目一
-
This is
a code block
I had to manually indent these lines
- 项目三
以上是
的输出
* List
* Item one
* ```
This is
a code block
I had to manually indent these lines
```
* Item three
这有帮助吗?
您需要添加空行以使其与 8 个空格一起使用。现在因为你的 item one
已经是 4 个空格,所以你需要像这样添加 12 个空格 (4 + 8 = 12)
* list
* item one
codes here..
然后看起来像:
- 名单
项目一
codes here..
我正在 github 中为我的 Repo 创建 README.md
文件,但我无法像 那样缩进 代码块 ]list items 从左边缩进,我正在尝试 bottom 我希望这段代码以 list items[=] 的缩进开始=23=].
* list
* Item one
* ``` codes here..```
它也没有用 :( 不知道为什么。
Skip a line and indent eight spaces. Eight spaces will trigger the code block.
- 列表
- 项目一
-
This is a code block I had to manually indent these lines
- 项目三
以上是
的输出 * List
* Item one
* ```
This is
a code block
I had to manually indent these lines
```
* Item three
这有帮助吗?
您需要添加空行以使其与 8 个空格一起使用。现在因为你的 item one
已经是 4 个空格,所以你需要像这样添加 12 个空格 (4 + 8 = 12)
* list
* item one
codes here..
然后看起来像:
- 名单
项目一
codes here..