quantizor/markdown-to-jsx

Pipe breaks the heading formatting

ghorela3ishan opened this issue · 0 comments

Using markdown-to-jsx latest version: 7.4.7
Using pipe ( | ) in a heading string breaks the formatting. The package considers it as a p tag and not the expected heading tag.
Eg:
Passing ## Heading | text to the markdown renders p tag
Screenshot 2024-07-09 at 12 45 52 PM

Instead it should render an h2 tag as shown below

Heading | text

Sandbox Link