Skip to content

Hard line breaks parsed incorrectly in version 1.1.0 #172

Open
@jamesquilty

Description

@jamesquilty

Describe the problem

I found what I think is a bug with the parsing of hard like breaks https://spec.commonmark.org/0.30/#hard-line-break. Example 634

foo\
baz

should be parsed as

<p>foo<br />
baz</p>

but I receive

<p>foo\</p>
<p>baz</p>

The markdown-it demo https://markdown-it.github.io/ produces output consistent with Example 634, so I think this is a bug in markdown-it-py only.

Link to your repository or website

No response

Steps to reproduce

$ markdown-it
markdown-it-py [version 1.1.0] (interactive)
Type Ctrl-D to complete input, or Ctrl-C to exit.
>>> foo\
... baz
... ^D
<p>foo\</p>
<p>baz</p>

The version of Python you're using

Python 3.7.3

Your operating system

macOS

Versions of your packages

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions