I just noticed a question that had two different numbered lists with different numbers but both were rendered as "1". Screen shot:
Is this supposed to be happening?
Meta Stack Exchange is a question and answer site for meta-discussion of the Stack Exchange family of Q&A websites. It only takes a minute to sign up.
Sign up to join this communityYes, it's supposed to be happening: – that's how Markdown defines it:
It’s important to note that the actual numbers you use to mark the list have no effect on the HTML output Markdown produces.
It's probably one of the more debated features of Markdown, but it's indeed thusly defined in the “spec” (scare quotes because the Markdown spec is more of a “description of behaviour” than an actual specification).
This is by design per the markdown spec. Those are two unconnected lists.
You can however do this
1. List Item
or
2. List item
List Item
or
List item
Yes, it's an unfortunate trait of markdown. You can get around it by indenting each entire list item by 4 spaces however.
This is a multi-paragraph list item.
It has lots of teeny paragraphs.
But there is a way around it...
It's not ideal, but it gets the job done!
Ta da!
(found this out from the markdown reference on daringfireball)
Yes, it's a bug and it isn't. It appears to be by design. I can reproduce it here (edit to see the problem). If you hit enter after placing the second list item, then this problem goes away:
List item
or
List item