quantizor / markdown-to-jsx

🏭 The most lightweight, customizable React markdown component.
https://markdown-to-jsx.quantizor.dev/
MIT License
1.96k stars 169 forks source link

Pipe breaks the heading formatting #595

Open ghorela3ishan opened 1 month ago

ghorela3ishan commented 1 month ago

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