Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 155 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

I noticed a problem which appeared on this answer from Stack Overflow. In the answer there is an ordered list, and after the first item in the list there is a 'pre' tag. For some reason, even though the list in edit mode starts with 2, it appears to start from 1.

This is the text in edit mode:

1. Tokenize the string. See what each symbol is. For example, the list may contain:

<pre>'(' Open parentheses
'11' Number
'+' Operator etc</pre>

2. Convert the expression to [postfix][2]...

And this is how I see it:

Screenshot

share|improve this question
up vote 6 down vote accepted

Just change it as the following:

1. Tokenize the string. See what each symbol is. For example, the list may contain:

        '(' Open parantheses
        '11' Number
        '+' Operator etc

2. Convert the expression to [postfix][2]…

The <pre> part has been indented of 8 spaces.

It will be rendered as follows.

  1. Tokenize the string. See what each symbol is. For example, the list may contain:

    '(' Open parantheses
    '11' Number
    '+' Operator etc
    
  2. Convert the expression to postfix

share|improve this answer

This isn't a bug, it's Markdown syntax. In ordered lists, the number you write doesn't matter.

The Markdown code

15. this
37. is
9. a
177. test

gets rendered as

  1. this
  2. is
  3. a
  4. test

If you need multiple paragraphs in a single item, indent all but the first one (one to four spaces).

The Markdown code

1. A

 B

1. C

gets rendered as

  1. A

    B

  2. C

share|improve this answer
    
Thanks, I didn't know about this, which created the confusion. – Tibi Sep 12 '12 at 18:57

You must log in to answer this question.

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