Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create an automatically numbered list

Tags:

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.

like image 604
user1027169 Avatar asked Aug 27 '12 15:08

user1027169


People also ask

How do I insert automatic numbering in a table?

Select the column of your table where you want to insert a numbered list with other formatting. Switch to “Home” tab, and click “Numbering” drop down list. And then select “Define New Number Format” In the subsequent dialog box, enter your customized number format under “Number Format” box.


2 Answers

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

like image 146
PeeHaa Avatar answered Oct 21 '22 11:10

PeeHaa


if you type the first one with a one like this 1. lorem then as long as the rest have a space after the dot then it should work

1. lorem 4. hello 3. blah blah blah 

you should get this:

  1. lorem
  2. hello
  3. blah blah blah
like image 35
Timely10 Avatar answered Oct 21 '22 11:10

Timely10