Skip to content

Line breaks are not parsed correctly #418

@Lumethys

Description

@Lumethys

According to the Markdown Guide, to introduce a linebreak, we can use a double space follow by a linebreak, using the <br> tag (or :br in mdc context), double new line, or a backlash \ (not recommended)

However, only the explicit <br> or :br works to insert a new line in parseMarkdown(), all the other methods seems to get trimmed, especially the trailing 2 spaces and double new line, which result in "My first line.My second line" (notice the lack of space after the .)

The official Nuxt portfolio template also suffer from this. An example from the About page:

markdown in yml:

...intuitive and engaging for users.

My path started...

get rendered as

...intuitive and engaging for users.My path started...

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