quantizor / markdown-to-jsx

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

fix: handle render of empty noInnerParse html nodes like script and style tag #597 #601

Closed Antony0101 closed 2 weeks ago

Antony0101 commented 3 months ago

closes #597 closes #582 Issue was due to script and style tags (elements contained in DO_NOT_PROCESS_HTML_ELEMENTS list) which produces undefined children when parsed. So when text is empty render function will try to render with undefined children which will throw the error.

changeset-bot[bot] commented 3 months ago

🦋 Changeset detected

Latest commit: db6c7fc20575063922e79ad35459565b54f294df

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | --------------- | ----- | | markdown-to-jsx | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR