Text editor bug with code block


(5an1ty) #1

Example:

When having text immediately followed by a code block on a new line, the code block isn’t identified as one.

Test:
     Code

Result:

Test:
Code


(Jeff Atwood) #2

Not a bug. The markdown spec works that way. Try it yourself:

http://johnmacfarlane.net/babelmark2/?text=Test%3A +++++Code

You need line breaks between formatting in many cases:

Test:

    code

(Jeff Atwood) #3