Create an automatically numbered list in Markdown format

editor.md, markdown

Solution

That should happen automatically (at least in SO flavored MD):

- test 1

- 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

Problem

What is the best way to create a numbered list in Markdown format? I currently have to manually enter the number I want to appear, but if I add items, I have to renumber them all.

Original source