pr_18819.patch 639 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. @@ -36,6 +36,15 @@ export const loadMathJax = async () => {
  4. },
  5. startup: {
  6. typeset: false,
  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. }