4

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.

2
  • 3
    How interesting… Here is the source, for those interested meta.stackoverflow.com/revisions/…
    – Josh Hunt
    Commented Oct 3, 2009 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
    Commented Dec 3, 2009 at 19:39

2 Answers 2

1

See answer here

Markdown formatting bug with code blocks in lists

1
  • 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.) Commented Jun 23, 2010 at 14:54
0

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

lua - metadata for documentation

You must log in to answer this question.

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