Markdown: continue numbered list

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

    I solved this problem on Github separating the indented sub-block with a newline, for instance, you write the item 1, then hit enter twice (like if it was a new paragraph), indent the block and write what you want (a block of code, text, etc). More information on Markdown lists and Markdown line breaks.

    Example:

    1. item one
    2. item two

      this block acts as a new paragraph, above there is a blank line

    3. item three

      some other code

    4. item four

提交回复
热议问题