markdown icon indicating copy to clipboard operation
markdown copied to clipboard

New lines at the end of code blocks are being removed

Open amilner42 opened this issue 5 years ago • 0 comments

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:

image

NOTE that it chopped off all the final empty newlines.

amilner42 avatar Jun 12 '19 00:06 amilner42