我正在尝试将代码添加到Markdown(在BitBucket存储库的Wiki中)的数字列表中,但是它破坏了列表的编号:在下面的示例中,项目3以1开头。
1. item one
text
2. item two
text
```
#!ini
code
```
3. item 3
摆脱反引号,只需将代码缩进4 *(n + 1)个空格,其中n是嵌套级别。在这种情况下,嵌套级别为1,因此您必须将代码缩进8个空格。
1. item one
text
2. item two
text
#!ini
code
3. item 3
输出是所需的:
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句