You can repro this on demo.html In the input, if I write a code block such as ``` var s = "JavaScript syntax highlighting"; alert(s); ``` it is rendered as a single line in the preview.