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

Firefox unable to render link tags #561

Closed OfficeBureau closed 5 months ago

OfficeBureau commented 5 months ago

For some reason Firefox seems to be unable to handle links generated by markdown-to-jsx.

Example Markdown String with markdown link and regular html link: [Link Text](https://github.com) | <a href="https://github.com">Link Text</a>

Expected output when passed to a component (and output in all other browsers):

Link Text | Link Text

Output in Firefox:

Link Text |  Link Text</a>

This is happening in a fairly standard Next.js (14.1) project with markdown-to-jsx ^7.4.0 in even the simplest of components.

We need to be able to pass HTML links instead of markdown links because markdown links don't support the target attribute and we need this functionality. This feels like a fairly standard use case.

Attached is a screenshot showing Firefox output on the left, Chrome output in the middle, and the md string that's being passed to a component.

Screenshot 2024-03-22 at 11 55 36 AM

Any thoughts/help would be appreciated.

OfficeBureau commented 5 months ago

In a classic move, after submitting this issue we updated from 7.4.0 to 7.4.4 and the issue is now resolved.