Просмотр исходного кода

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

[web] Disable mathjax unicode package

GitOrigin-RevId: 0c42a7a531576af35c31377068763bee4674394d
John Lees-Miller 2 лет назад
Родитель
Сommit
05ac4b956d
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      services/web/frontend/js/features/mathjax/load-mathjax.ts

+ 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
               '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,