What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 133 Stack Exchange communities.

Possible Duplicate:
List bullet missing with code block as the first paragraph of a list (Chrome 12)

On my most recent question I made an ordered list like so:

  1. 

        function foo(){
             alert('BAR');
        }

  2. 

        var foo = function (){
             alert('BAR');
        }

  3. 

        var foo = function bar(){
             alert('BAR');
        }

But it shows up with no numbers in the list!

no numbers?

What happened?!

share|improve this question

marked as duplicate by Tim Stone, Matt, jadarnel27, ChrisF, Robert Harvey Jun 14 '12 at 15:30

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.

    
Ordered lists don't work in code formatting. Your 1. and 2. aren't part of any language that I know of. –  Robert Harvey Jun 14 '12 at 15:20
    
@RobertHarvey but it does create the <ol> if you look at the output. –  amanaP lanaC A nalP A naM A Jun 14 '12 at 15:21
    
Break the code up into separate code formatting blocks. –  Robert Harvey Jun 14 '12 at 15:22
    
@RobertHarvey what do you mean? –  amanaP lanaC A nalP A naM A Jun 14 '12 at 15:22
1  
They seriously haven't fixed this bug yet? What the hell Chrome. –  Tim Stone Jun 14 '12 at 15:24

1 Answer 1

Just remove the indent from the numeric list elements.

  1.     function foo(){
             alert('BAR');
        }
    
  2.     var foo = function (){
             alert('BAR');
        }
    
  3.     var foo = function bar(){
             alert('BAR');
        }
    
share|improve this answer
    
I want the numbered list. 1,2,3 -- they are example numbers –  amanaP lanaC A nalP A naM A Jun 14 '12 at 15:24
    
You don't seen them in my example above? –  Robert Harvey Jun 14 '12 at 15:24
5  
@RobertHarvey: I dont (on Chrome) –  Matt Jun 14 '12 at 15:26
2  
@Robert... I see none :-( [I am in Chrome] –  amanaP lanaC A nalP A naM A Jun 14 '12 at 15:26
    
I see them in the stock Android browser. (2.3) –  John Jun 14 '12 at 21:20

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