Skip to content

Commit

Permalink
Merge pull request #1045 from mathjax/svg-xmlns
Browse files Browse the repository at this point in the history
Add xmlns for global cache svg element.  (mathjax/MathJax-demos-node#58)
  • Loading branch information
dpvc authored Feb 1, 2024
2 parents c48f82c + 0643b04 commit 65944ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ts/output/svg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,11 @@ CommonOutputJax<
*/
public pageElements(html: MathDocument<N, T, D>) {
if (this.options.fontCache === 'global' && !this.findCache(html)) {
return this.svg('svg', {id: SVG.FONTCACHEID, style: {display: 'none'}}, [this.fontCache.getCache()]);
return this.svg('svg', {
xmlns: SVGNS,
id: SVG.FONTCACHEID,
style: {display: 'none'}
}, [this.fontCache.getCache()]);
}
return null as N;
}
Expand Down

0 comments on commit 65944ab

Please sign in to comment.