Skip to content

New lines at the end of code blocks are being removed #4

Description

@amilner42

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions