diff --git a/types/mathjax/index.d.ts b/types/mathjax/index.d.ts index 8c0dc99e1a..aaf4a6109c 100644 --- a/types/mathjax/index.d.ts +++ b/types/mathjax/index.d.ts @@ -1030,6 +1030,17 @@ declare namespace MathJax { * they were MathML, you might need to set this to true. */ addMMLclasses?: boolean; + /*This controls whether the SVG output uses elements to re-use font paths rather than repeat paths every + * time. If useGlobalCache (see below) is set to false, this will still reduce duplication of paths while keeping + * each SVG self-contained. + */ + useFontCache?: boolean; + /*When set to true the SVG Output stores paths (corresponding to “fonts” in the SVG output) in a global SVG + * object using elements so that it can re-use them in all equations via elements (much like a font + * file allows re-use of characters across the document). While set to true by default, it will have no effect if + * useFontCache is set to false. + */ + useGlobalCache?: boolean; /*EqnChunk is the number of equations that will be typeset before they appear on screen. Larger values make for * less visual flicker as the equations are drawn, but also mean longer delays before the reader sees anything. */ diff --git a/types/mathjax/mathjax-tests.ts b/types/mathjax/mathjax-tests.ts index 619a8fc591..755e3bc4bd 100644 --- a/types/mathjax/mathjax-tests.ts +++ b/types/mathjax/mathjax-tests.ts @@ -57,4 +57,11 @@ MathJax.Hub.Config({ "HTML-CSS": { linebreaks: { automatic: true } }, CommonHTML: { linebreaks: { automatic: true } }, SVG: { linebreaks: { automatic: true } } -}); \ No newline at end of file +}); + +MathJax.Hub.Config({ + SVG: { + useFontCache: true, + useGlobalCache: true + } +})