Markdown: continue numbered list

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

    If you want to have text aligned to preceding list item but avoid having "big" line break, use two spaces at the end of a list item and indent the text with some spaces.

    Source: (dots are spaces ;-) of course)

    1.·item1··
    ····This is some text
    2.item2
    

    Result:

    1. item1
      This is some text
    2. item2

提交回复
热议问题