Closed laem closed 2 years ago
Hey, thanks for pointing that out! I'll take a look at it.
Some background info:
I already had a mechanism for removing namespace attributes, but it only removed the xmlns
namespace declarations. I changed this now to removing all namespace attributes, assuming that these are irrelevant (just like the sodipodi docname in this case).
I don't know if it helps, but I finally went for this piece of code, simpler and fit for my purpose : https://github.com/laem/futureco/blob/e95a404946b97441cdfd382e8deb1831c44993f8/source/components/Emoji.tsx
Hi, I get this error when trying to install this lib.
Probably comes from this namespace "sodipodi:docname="flag-quebec.svg"". I've seen then being produced by inkscape. @SVGO removes them.
Could probably be resolved by using @svgr here : https://github.com/drinking-code/openmoji-for-react/blob/master/build/correct-dom-properties.js