Create an automatically numbered list

爱⌒轻易说出口 提交于 2020-11-26 07:02:22

问题


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 list, it is cumbersome to have to re-number all the following items.


回答1:


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



来源:https://stackoverflow.com/questions/12145232/create-an-automatically-numbered-list

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!