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

Empty `<style></style>` or `<style />` causes library to crash #582

Open lukebowerman opened 3 months ago

lukebowerman commented 3 months ago

Adding <style></style> to a string parsed by the Markdown component causes the component to crash.

Reproduction

  1. Go to https://markdown-to-jsx.quantizor.dev/

  2. Paste:

This is markdown

<style></style>
  1. 🔥