mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 04:23:39 -05:00
aa142b3c09
[server-pro] add hotfixes 4.2.5 and 5.0.5 GitOrigin-RevId: 55a138662d3c2059ce802e6a6fd70e70fd01c8cd
17 lines
660 B
Diff
17 lines
660 B
Diff
--- a/services/web/frontend/js/features/mathjax/load-mathjax.ts
|
|
+++ b/services/web/frontend/js/features/mathjax/load-mathjax.ts
|
|
@@ -64,6 +64,15 @@ export const loadMathJax = async (options?: {
|
|
.findID('Renderer')
|
|
.disable()
|
|
},
|
|
+ ready() {
|
|
+ window.MathJax.startup.defaultReady()
|
|
+ const safe = window.MathJax.startup.document.safe
|
|
+ safe.filterAttributes.set('fontfamily', 'filterFontFamily')
|
|
+ safe.filterMethods.filterFontFamily = (
|
|
+ _safe: any,
|
|
+ family: string
|
|
+ ) => family.split(/;/)[0]
|
|
+ },
|
|
},
|
|
}
|