Markdown 用于在标记列表中添加标准代码块的格式
我发现我无法在编号列表中获取代码块 例如,当我通过缩进四个空格添加代码块时,通常如下所示:Markdown 用于在标记列表中添加标准代码块的格式,markdown,code-formatting,Markdown,Code Formatting,我发现我无法在编号列表中获取代码块 例如,当我通过缩进四个空格添加代码块时,通常如下所示: 1. Do the first thing $ git stuff $ git other stuff 2. second thing: $ git more stuff 结果是这样的,$git行是普通文本,没有格式化为代码: 做第一件事 $git的东西 $git其他东西 第二件事: $git更多东西 我可以用反勾来做这件事 1. Do the first things
1. Do the first thing
$ git stuff
$ git other stuff
2. second thing:
$ git more stuff
结果是这样的,$git
行是普通文本,没有格式化为代码:
1. Do the first things
`$ git stuff`
`$ git other stuff`
2. second thing:
`$ git more stuff`
但是如果可以的话,我想“正常”地(4个空格缩进)做块。每个你需要做额外的缩进+4个空格或+1个制表符(从第0列开始分别为8/2)
这些新词是必要的
1. Item 1
$git stuff
$git other stuff
2. Item 2
$git more stuff