milesj / interweave

🌀 React library to safely render HTML, filter attributes, autowrap text with matchers, render emoji characters, and much more.
https://interweave.dev
MIT License
1.1k stars 38 forks source link

Transform: node.tagName is case sensitive #266

Closed arcataroger closed 11 months ago

arcataroger commented 11 months ago

It looked to me like all the node.tagNames were uppercase, even if the original HTML was in lowercase.

The node.tagName === 'a' in the example didn't work for me, but node.tagName === 'A' ornode.tagName.toLowerCase() === 'a'` do.

milesj commented 11 months ago

Thanks