Consider the following markdown:


Note that there are two trailing spaces in the first and second lines. In the editing preview, this looks like this:

markdown preview

In actual posts, it looks like this:


I don't actually know which of these is "supposed" to be correct (according to a spec for markdown or something, if such a thing exists).

Note also that this bug is a reduced form of an actual bug experienced by a user on Japanese.SE (see this revision history), not a bizarre edge case thing I have deliberately contrived for my own amusement.

  • Why not just wrap the block with <pre></pre> or indent each line by four spaces?
    – random
    Sep 23 '13 at 21:07
  • @random That would probably be a better approach, yes.
    – senshin
    Sep 23 '13 at 21:42

You must log in to answer this question.

Browse other questions tagged .