降价:继续编号清单 [英] Markdown: continue numbered list

查看:67
本文介绍了降价:继续编号清单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在下面的降价代码中,我希望item 3以列表号3开头.但是由于降价之间的代码块,此列表项将作为新列表启动.有什么办法可以防止这种行为?

In the following markdown code I want item 3 to start with list number 3. But because of the code block in between markdown starts this list item as a new list. Is there any way to prevent that behaviour?

所需的输出:

1. item 1
2. item 2

```
Code block
```

3. item 3

产生的输出:

  1. 项目1
  2. 项目2

Code block

Code block

  1. 项目3

推荐答案

使用四个空格在要点之间缩进内容

Use four spaces to indent content between bullet points

1. item 1
2. item 2

    ```
    Code block
    ```
3. item 3

产生:

  1. 项目1
  2. 项目2

  1. item 1
  2. item 2

Code block

Code block

这篇关于降价:继续编号清单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆