1

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?!

marked as duplicate by Tim Stone, Matt, Josh Darnell, 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
0

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');
        }
    
  • 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 .