pr_18819.patch 660 B

1234567891011121314151617
  1. --- a/services/web/frontend/js/features/mathjax/load-mathjax.ts
  2. +++ b/services/web/frontend/js/features/mathjax/load-mathjax.ts
  3. @@ -64,6 +64,15 @@ export const loadMathJax = async (options?: {
  4. .findID('Renderer')
  5. .disable()
  6. },
  7. + ready() {
  8. + window.MathJax.startup.defaultReady()
  9. + const safe = window.MathJax.startup.document.safe
  10. + safe.filterAttributes.set('fontfamily', 'filterFontFamily')
  11. + safe.filterMethods.filterFontFamily = (
  12. + _safe: any,
  13. + family: string
  14. + ) => family.split(/;/)[0]
  15. + },
  16. },
  17. }