9

I just noticed a question that had two different numbered lists with different numbers but both were rendered as "1". Screen shot:

enter image description here

Is this supposed to be happening?

4 Answers 4

6

Yes, 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).

6

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
  1. List Item

    or

  2. List item

3

Yes, it's an unfortunate trait of markdown. You can get around it by indenting each entire list item by 4 spaces however.

  1. This is a multi-paragraph list item.

    It has lots of teeny paragraphs.

    But there is a way around it...

  2. It's not ideal, but it gets the job done!

  3. Ta da!

(found this out from the markdown reference on daringfireball)

0

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:

  1. List item

    or

  2. List item

1
  • 1
    If it's by design, then it's not a bug... Jun 13, 2011 at 21:31

You must log in to answer this question.

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