This is a bit of a follow-up to #96. Currently, there are SVGs which will render properly, but will crash the paint editor and/or not be displayed by the browser because they cannot be parsed.
Fixing this would require scratch-paint and scratch-gui to call the "fixup SVG string" function; however, this module does not currently export it.
Should scratch-svg-renderer export "fixup SVG string" as a public function?