Skip to content

Hashtags should be removed from output #3048

@elmeister

Description

@elmeister

Marked version:
9.1.2

Describe the bug
The following content

Hashtags test
####
End of test

Is being parsed as

<p>Hashtags test<br>####<br>End of test</p>

Every other Markdown parser I tested will not output hashtags, so something like this is expected

<p>Hashtags test<br><br>End of test</p>

To Reproduce

marked.parse('Hashtags test\n####\nEnd of test')

Marked Demo

Expected behavior
Expected output is one that is produced by commonmark.js

Hashtags test

End of test

Metadata

Metadata

Assignees

No one assigned

    Labels

    L2 - annoyingSimilar to L1 - broken but there is a known workaround available for the issuecategory: headings

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions