PR_SVG_PARSER.md
Enable SVG sprite parser selection via pragma (Nano default)
This PR implements pragma-based selection for SVG sprite parsing while keeping the Nano parser as the default to preserve backward compatibility. The SAX parser can be enabled explicitly with a pragma and remains opt-in. TeaVM builds always force Nano to avoid missing javax.xml.parsers during JavaScript generation.
Maintainers requested that Nano remain the default parser and SAX be explicitly enabled. This change provides a simple, diagram-local switch that avoids breaking existing users while allowing testing and adoption of the SAX parser.
Related PR: https://github.com/plantuml/plantuml/pull/2548 (closed, #2548)
!pragma svgparser sax
or
!pragma svgparser nano
TeaVM does not include javax.xml.parsers. The parser factory forces Nano when TeaVM.isTeaVM() is true. TeaVM resolves this branch at compile time, so the JVM-only SAX path is removed from generated JavaScript output and class stubs.
<style> blocks or class selectors).!pragma svgparser sax.