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. Dec 28, 2010 at 13:29

1 Answer 1


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

Markdown formatting bug with code blocks in lists

For more details.

  • Wow, I completely forgot that I had already noticed this. Dec 29, 2010 at 9:40
  • 1
    @konrad fortunately I did not. Dec 29, 2010 at 22:59

You must log in to answer this question.

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