Skip to content

Bare backslash rendered as backslash before heading #884

@martijnthe

Description

@martijnthe

Initial checklist

Affected package

[email protected]

Steps to reproduce

To repro, I used the demo page and added this at the top:

Test
\
\
# A demo of `react-markdown`

Actual behavior

In the screenshot below, you can see that the backslash before the heading is being rendered as a backslash and not as a line break.
I tried adding a newline after the backslash, but that also doesn't work-around the problem.
When I remove the heading (#) the backslash does get rendered as a line break.

Image

Expected behavior

Backslashes before a heading should also be rendered as a line break.

Runtime

No response

Package manager

No response

Operating system

No response

Build and bundle tools

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    👎 phase/noPost cannot or will not be acted on🤷 no/invalidThis cannot be acted upon

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions