6

Markdown seems to duplicate empty lines in listings that appear inside a list:

  1. Single empty line is duplicated

    Single empty line below:
    
    Single empty line above.
    
  2. Two empty lines display correctly

    Two empty lines below:
    
    
    Two empty lines above.
    

When not inside a list, this works:

Single empty line below:

Single empty line above.

[View source code of this posting]

  • My DOM inspector tells me that line height is 16px in the code block inside a list, and 18px outside, which might make the last case look less different than expected. It's not a CSS artifact, though. – Charles Stewart Dec 28 '10 at 13:29
4

Indeed, this is a "feature" of most Markdown implementations, and ours is no exception.

See:
Markdown formatting bug with code blocks in lists

For more details.

  • Wow, I completely forgot that I had already noticed this. – Konrad Rudolph Dec 29 '10 at 9:40
  • 1
    @konrad fortunately I did not. – Jeff Atwood Dec 29 '10 at 22:59

You must log in to answer this question.

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