pagedown icon indicating copy to clipboard operation
pagedown copied to clipboard

Code blocks end up in a single line

Open renuka-apte opened this issue 8 years ago • 2 comments

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.

renuka-apte avatar Jul 21 '17 23:07 renuka-apte

It would be great if this was updated. It still seems to be an issue.

lshep avatar Jun 20 '18 17:06 lshep

not really a fix, but a workaround. Have you tried appending a double-space to the end of your lines? Markdown tends to collapse things, which again, it shouldn't do in a code block, but I know that's what you do outside of it. Maybe that's something you can try.

MarqueIV avatar Aug 22 '20 22:08 MarqueIV