问题描述
我正在 github 中为我的 Repo 创建 README.md
文件,但我无法像我的列表项从左边,我正在尝试 bottom,我希望这段代码以 列表项 的缩进开头。
* list
* Item one
* ``` codes here..```
也没有用:(不知道为什么。
跳过一行并缩进八个空格。八个空格会触发代码块。
解决方法
- 列表
- 项目一
-
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..
-