What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 130 Stack Exchange communities.
  1. The number to the left shows up as a "1." even though I typed in "364." Very annoying.
share|improve this question
    
As requested in meta.stackexchange.com/questions/46138/…, the start number should be overridable (as it is in normal <li> tags). –  Ether Apr 10 '10 at 18:37

2 Answers 2

up vote 10 down vote accepted

...but by design.

From Markdown Editing Help:

A numbered <ol> list:

1. Numbered lists are easy
2. Markdown keeps track of the numbers for you
7. So this will be item 3.

As a workaround type a backslash before the dot:

364\. This won't become a list. (But hence it won't indent nicely either. 
      No matter if you try to indent yourself. It won't indent nicely.)

364. This won't become a list. (But hence it won't indent nicely either. No matter if you try to indent yourself. It won't indent nicely.)

share|improve this answer
1  
I take advantage of this feature all the time if you check the markdown source of any of my posts that contain ordered lists. –  XMLbog Jan 11 '10 at 19:04
    
That's truly an advantage indeed ;-) meta.stackoverflow.com/revisions/34480/list –  Arjan Jan 11 '10 at 19:27
    
Yuck, so I have to go out of my way to prevent it mangling what I typed, rather than being able to specify when I do want it to mangle my input. :-( –  Brian Knoblauch Jan 11 '10 at 20:13
    
For most the quest is about getting newlines ;-) meta.stackexchange.com/questions/26011/… (But then, I guess it's much more of a quest for those on non-technical stackexchange.com sites, not so much on our SO/SF/SU?) –  Arjan Jan 11 '10 at 21:07
    
Nice thing is that you don't even need to type the numbers. You can just use 1. for the first, and then - for the next ones. I like that feature :) Restarting lists on a different number would be nice though... but I don't think this is too easy in html either? Or perhaps there is some newer CSS thing to do that as well... probably is... –  Svish Jan 12 '10 at 11:17
2  
Yup, the "Markdown keeps track of the numbers for you" really is "your browser will start at 1 and increment for each item"... HTML did allow for <ol start="42">, but that has been deprecated, I guess in favour of CSS counter-reset: item 41; and li:before styles referring to such counter -- w3schools.com/css/pr_gen_counter-reset.asp –  Arjan Jan 12 '10 at 11:32

The other alternative is to do lists in a format Markdown doesn't understand

1) Like

2) This

3) List

But as previously noted, you won't get proper list indentation. This actually has some advantages when it comes to code blocks being mixed in with lists..

share|improve this answer
    
Good info to have. I'll keep that workaround in mind. –  Brian Knoblauch Jan 12 '10 at 19:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .