创建自动编号列表 [英] Create an automatically numbered list
问题描述
有没有一种方法可以创建Markdown格式的自动编号列表?当前,我必须手动输入要显示的数字,但是如果我在列表中插入项目,则必须重新编号以下所有项目很麻烦.
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.
推荐答案
这应该自动发生(至少在具有SO风格的MD中如此):
That should happen automatically (at least in SO flavored MD):
- 测试1
- 测试2
我使用的代码:
1. test 1
1. test 2
同样适用于GitHub风格的MD: https://gist.github.com/3489721
The same works for GitHub flavored MD: https://gist.github.com/3489721
您可以在此处进行测试: https://meta.stackexchange.com/questions/3122/formatting-sandbox
You can test it here: https://meta.stackexchange.com/questions/3122/formatting-sandbox
这篇关于创建自动编号列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!