Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipe breaks the heading formatting #595

Open
ghorela3ishan opened this issue Jul 9, 2024 · 0 comments
Open

Pipe breaks the heading formatting #595

ghorela3ishan opened this issue Jul 9, 2024 · 0 comments

Comments

@ghorela3ishan
Copy link

ghorela3ishan commented Jul 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant