创建自动编号列表 [英] Create an automatically numbered list

查看:82
本文介绍了创建自动编号列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以创建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. 测试1
  2. 测试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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆