Create an automatically numbered list

后端 未结 1 1988
猫巷女王i
猫巷女王i 2020-12-29 17:30

Is there a way to create an automatically numbered list in Markdown format? Currently, I have to manually enter in what number I want to appear, but if I insert items in the

相关标签:
1条回答
  • 2020-12-29 18:33

    That should happen automatically (at least in SO flavored MD):

    1. test 1
    2. test 2

    The code I used it:

    1. test 1
    1. test 2
    

    The same works for GitHub flavored MD: https://gist.github.com/3489721

    You can test it here: https://meta.stackexchange.com/questions/3122/formatting-sandbox

    0 讨论(0)
提交回复
热议问题