mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-18 08:42:11 -05:00
18 lines
639 B
Diff
18 lines
639 B
Diff
|
--- a/services/web/frontend/js/features/mathjax/load-mathjax.ts
|
||
|
+++ b/services/web/frontend/js/features/mathjax/load-mathjax.ts
|
||
|
@@ -36,6 +36,15 @@ export const loadMathJax = async () => {
|
||
|
},
|
||
|
startup: {
|
||
|
typeset: false,
|
||
|
+ 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]
|
||
|
+ },
|
||
|
},
|
||
|
}
|