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.09k stars 38 forks source link

Transform: node.tagName is case sensitive #266

Closed arcataroger closed 10 months ago

arcataroger commented 10 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 10 months ago

Thanks