11

This question already has an answer here:

I see that you can create an ordered list using Markdown notation like the following.

1. line 1
2. line 2
3. line 3
...
N. line N

The Markdown content supports starting each line with any arbitrary number and reorders the list starting with 1. I'd like to start an ordered list with zero. My use case for zero would be in describing capture groups from regular expressions where group zero always returns the entire string. So I'd like to display something like this:

# Groups
0. Entire string
1. The first capture group you were looking for
2. The second capture group
3. The third group with the string I heart Kittens

Markdown instead reorders the group and forces the ordered list to start at 1:

Picture of renumbered list

Trying to force the issue with inline HTML: <ol start="0"> or <ol><li value="0">entire string</li></ol> doesn't work either. Any ideas on how I can create ordered list starting with zero?

If it's not possible to do so, then this is a feature-request.

marked as duplicate by animuson, Rory, slhck, Hugo Dozois, ben is uǝq backwards May 26 '13 at 17:54

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • You make your feature requests right here on meta. – FDinoff May 26 '13 at 5:41
  • By tagging the question as a "feature-request" ? – Ro Yo Mi May 26 '13 at 5:43
  • Yes that should be sufficient for the correct people to notice the request. – FDinoff May 26 '13 at 5:45
  • You could use parentheses and newlines as a workaround – John Dvorak May 26 '13 at 6:00
  • 4
    I'm neither for this nor against this request, however I'm pretty sure it's not possible with the current markdown and I believe this answer by Jeff holds true here as well: Not a bad idea, but too significant a deviation from the markdown spec to be viable. – Shadow The Princess Wizard May 26 '13 at 6:23
  • I'm not sure how technically possible this is. I mean, I think there is some CSS to change the beginning of a list, not sure what about browser support though. – Madara Uchiha May 26 '13 at 8:12
  • The thing is, @ShaWizDowArd, that that other request which Jeff called a significant deviation from the markdown spec, would be a deviation from markdown, whereas this one could be done with a HTML workaround, without changing markdown itself. – TRiG Nov 13 '13 at 12:31