markdown
markdown copied to clipboard
New lines at the end of code blocks are being removed
New lines at the end of code blocks are being removed.
If you check github code blocks for instance, they are not removed, just like the code in this very markdown:
a = 5
To reproduce, simply try adding some new lines at the end such as:
import Markdown
...
view =
Markdown.toHtml
[]
"""```javascript
a = 5
```
"""
And you will get the following:

NOTE that it chopped off all the final empty newlines.