Markdown: continue numbered list

前端 未结 12 1609
予麋鹿
予麋鹿 2020-12-04 04:39

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.

12条回答
  •  死守一世寂寞
    2020-12-04 05:37

    If you use tab to indent the code block it will shape the entire block into one line. To avoid this you need to use html ordered list.

    1. item 1
    2. item 2

    Code block

    1. item 3
    2. item 4

提交回复
热议问题