StackExchange / pagedown

The Markdown editor and converter used on Stack Overflow and the other Stack Exchange sites
Other
417 stars 81 forks source link

Code blocks end up in a single line #93

Open renuka-apte opened 7 years ago

renuka-apte commented 7 years ago

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.

lshep commented 6 years ago

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

MarqueIV commented 4 years ago

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.