Should KaTeX work within SVG text elements? #3287
-
I'm working on producing graphs and am building everything in SVG; however, when I try to include KaTeX in the SVG Just looking for confirmation as to the expected behaviour so I know where to get started. Thanks in advance for your time and help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
No, it shouldn't work. KaTeX needs an HTML environment to render. You can escape from SVG to HTML (if you're using an HTML viewer) via FWIW, MathJax supports pure SVG output. For KaTeX, it's feature request issue #375. |
Beta Was this translation helpful? Give feedback.
No, it shouldn't work. KaTeX needs an HTML environment to render. You can escape from SVG to HTML (if you're using an HTML viewer) via
<foreignObject>
, but<text>
remains in SVG.FWIW, MathJax supports pure SVG output. For KaTeX, it's feature request issue #375.