Create an automatically numbered list

Markdown

Markdown Problem Overview


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.

Markdown Solutions


Solution 1 - Markdown

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

Solution 2 - Markdown

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

Solution 3 - Markdown

If you need add any comment/description/whatever under an item in the list. Only this option solved my case.

<ol>
    <li>option 1</li>
    <li>option 2</li>
    <li>option 3</li>
</ol>

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser1027169View Question on Stackoverflow
Solution 1 - MarkdownPeeHaaView Answer on Stackoverflow
Solution 2 - MarkdownTimely10View Answer on Stackoverflow
Solution 3 - MarkdowniluView Answer on Stackoverflow