From 05ac4b956dd098814f667803fb3456d4bbd120a2 Mon Sep 17 00:00:00 2001 From: John Lees-Miller Date: Sat, 8 Jun 2024 11:10:50 +0100 Subject: [PATCH] Merge pull request #18812 from overleaf/mj-mathjax-unicode [web] Disable mathjax unicode package GitOrigin-RevId: 0c42a7a531576af35c31377068763bee4674394d --- services/web/frontend/js/features/mathjax/load-mathjax.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/services/web/frontend/js/features/mathjax/load-mathjax.ts b/services/web/frontend/js/features/mathjax/load-mathjax.ts index 0055f1ce73..4d529f2fa4 100644 --- a/services/web/frontend/js/features/mathjax/load-mathjax.ts +++ b/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,