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

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

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

Antony0101
Copy link
Contributor

@Antony0101 Antony0101 commented Aug 29, 2024

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.

Copy link

changeset-bot bot commented Aug 29, 2024

🦋 Changeset detected

Latest commit: db6c7fc

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

Copy link
Owner

@quantizor quantizor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks :)

@quantizor quantizor merged commit 58b96d3 into quantizor:main Nov 12, 2024
5 checks passed
@Antony0101 Antony0101 deleted the issue/597 branch November 12, 2024 07:40
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

Successfully merging this pull request may close these issues.

Script tag causes exception Empty <style></style> or <style /> causes library to crash
2 participants