AsciiMath Delimiter not working with MathJax?

AsciiMath Delimiter not working with MathJax?

par Stanislav Shap,
Nombre de réponses : 2

On Moodle 3.11 and MathJax 2.7.9

In site admin/plugins/filters/MathJax I added a backtick (`) as explained by the text at the bottom of the page.


But testing the delimiter in a question does not seem to work:



MathJax still renders the TeX, so it is enabled, just the AsciiMath is not working.

What could be causing this issue? Is there anything else that needs to be enabled for AsciiMath to be used?

Thanks.

Moyenne des évaluations  -
En réponse à Stanislav Shap

Re: AsciiMath Delimiter not working with MathJax?

par Leon Stringer,
Avatar Core developers Avatar Particularly helpful Moodlers

It looks like you need to configure this in MathJax configuration too. Based on the configuration in CONTRIB-384 I managed to get this to work with the configuration:

MathJax.Hub.Config({
    config: ["MMLorHTML.js", "Safe.js"],
    errorSettings: { message: ["!"] },
    skipStartupTypeset: true,
    messageStyle: "none",
    jax: ["input/TeX","input/MathML","input/AsciiMath","output/HTML-CSS","output/NativeMML"],
    extensions: ["tex2jax.js","mml2jax.js","asciimath2jax.js","MathMenu.js","MathZoom.js"],
});