Chrome does not display correct Mathematics

Chrome does not display correct Mathematics

by Minh Nguyen Ba -
Number of replies: 3

Hi

We are using Mathematics in question. They are display correct in FireFox, but it shows wrong with Chrome. MathJax is enabled already.

What is the issue and how to fix this?

Thanks

Average of ratings: -
In reply to Minh Nguyen Ba

Re: Chrome does not display correct Mathematics

by Daniel Thies -
Picture of Core developers Picture of Plugin developers Picture of Testers

I would assume that you are encoding your mathematics with MathML. Firefox has native MathML support, but Chrome does not. The default MathJax configuration of Moodle assumes that mathematics is encoded with \(\LaTeX\). You may need to change MathJax configuration file in the MathJax loader filter and add 'math' to the 'Additional delimiters' field.

In reply to Daniel Thies

Re: Chrome does not display correct Mathematics

by Minh Nguyen Ba -
Add <math to Plugins > Filters > MathJax > Additional equation delimiters, it works like a charm.
@Daniel, you save a lot of my time. Thank you.
In reply to Daniel Thies

Re: Chrome does not display correct Mathematics

by Repasemos Ruben -

Hi there, I've tried to add <math to the Additional delimiters field, but still causing troublesome just on Chrome (last version 102.0.5005.61). I'm using it on h5p.

That's what I get on the console, any idea how to solve it?? It will be life changing

MathJax.js:19 Uncaught TypeError: Cannot read properties of undefined (reading 'id')
    at Object.Menu (MathJax.js:19:48959)
    at Function.execute (MathJax.js:19:3242)
    at cb (MathJax.js:19:2819)
    at Object.Process (MathJax.js:19:8703)
    at Object.call (MathJax.js:19:8960)
    at Function.WAITEXECUTE (MathJax.js:19:6188)
    at cb (MathJax.js:19:2819)
    at Object.Process (MathJax.js:19:8703)
    at Object.call (MathJax.js:19:8960)
    at Function.WAITEXECUTE (MathJax.js:19:6188)