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

If I put a code block in a list, a single newline in the source is displayed as two newlines in the rendered page:

  1. Sample:

    code here, single empty line following:
    
    
    more code here
    
  2. ...

(The eight space indent is markdown for "inside the list and a code block").
The same happens for unordered lists, but inside quotations everything works fine. One empty line in the source should correspond to one empty line in the output.

share|improve this question
3  
How interesting… Here is the source, for those interested meta.stackoverflow.com/revisions/… –  David Pearce Oct 3 '09 at 2:59
2  
Well, great, so the error is in Markdown everywhere. Is Markdown divine? Is something that seems wrong to everyone's eyes an error of the eyes now? Does this really warrant a "status-bydesign"? –  Svante Dec 3 '09 at 19:39

2 Answers 2

See answer here

Markdown formatting bug with code blocks in lists

share|improve this answer
1  
I sure believe that it's broken and has always been broken. I've read your blog entry on poor parenting of open-source software. But could you kindly edit to explain that you think it's better to be consistent with markdown's no bugs than to format code inside lists well? (I sort of think that's your position, but I'm not certain, and I'd sure like to know why.) –  Norman Ramsey Jun 23 '10 at 14:54

Seen, but it does make it hard to write nice answers for the archives:

http://stackoverflow.com/questions/3100062/lua-metadata-for-documentation/3102703#3102703

share|improve this answer

You must log in to answer this question.

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