Markdown: continue numbered list

前端 未结 12 1621
予麋鹿
予麋鹿 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:43

    As an extension to existing answers. For those trying to continue a numbered list after something other than a code block. For example a second paragraph. Just indent the second paragraph by at least 1 space.

    Markdown:

    1. one
    2. two
    
     three
    3. four
    

    Output:

    1. one

    2. two

      three

    3. four

提交回复
热议问题