Skip to content

Line break incorrectly inserted in formatted lines #415

Description

@luiscubal

Steps to reproduce the problem (provide example Markdown if applicable):

Hello  
**Bar**
Foo

(with two spaces at the end of the first line, none at the end of the second line)

Expected behavior:

<p>Hello<br />
<strong>World</strong>
Next line</p>

Actual behavior:

<p>Hello<br />
<strong>World</strong><br />
Next line</p>

Note: if the line is **World**x instead of **World**, then no line break is inserted.
Tested in commonmark 0.27.0.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions