Ver Fonte

Merge pull request #18812 from overleaf/mj-mathjax-unicode

[web] Disable mathjax unicode package

GitOrigin-RevId: 0c42a7a531576af35c31377068763bee4674394d
John Lees-Miller há 2 anos atrás
pai
commit
05ac4b956d

+ 1 - 0
services/web/frontend/js/features/mathjax/load-mathjax.ts

@@ -40,6 +40,7 @@ export const loadMathJax = async (options?: {
             '[-]': [
             '[-]': [
               'html', // avoid creating HTML elements/attributes
               'html', // avoid creating HTML elements/attributes
               'require', // prevent loading disabled packages
               'require', // prevent loading disabled packages
+              'unicode', // Prevent CSS injection https://github.com/mathjax/MathJax/issues/3129 / https://github.com/mathjax/MathJax/issues/3241
             ],
             ],
           },
           },
           processEscapes: true,
           processEscapes: true,