This produces invalid data URLs :(
I first noticed that while checking valshot landing page output on the W3C validator: https://validator.w3.org/nu/?doc=https://vladimyr-valshot.web.val.run That prompted me to try fetching those URLs and they are indeed malformed: https://www.val.town/v/vladimyr/valTownLogo_test
PR is on the way 🛬
@vladimyr thanks for the catch and PR! 🙏
Any time 😉 Just to be clear, this still produces URLs with spaces, which makes the W3C validator freak out, but they are not invalid, and SVG markup can be extracted from them using a simple fetch call.
fetch
You can see these SVGs in action here: https://www.val.town/v/vladimyr/valTownLogo_test2
This produces invalid data URLs :(
I first noticed that while checking valshot landing page output on the W3C validator: https://validator.w3.org/nu/?doc=https://vladimyr-valshot.web.val.run That prompted me to try fetching those URLs and they are indeed malformed: https://www.val.town/v/vladimyr/valTownLogo_test
PR is on the way 🛬
@vladimyr thanks for the catch and PR! 🙏
Any time 😉 Just to be clear, this still produces URLs with spaces, which makes the W3C validator freak out, but they are not invalid, and SVG markup can be extracted from them using a simple
fetch
call.You can see these SVGs in action here: https://www.val.town/v/vladimyr/valTownLogo_test2