AsciiMath Delimiter not working with MathJax?

AsciiMath Delimiter not working with MathJax?

Stanislav Shap -
回帖数: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.

回复Stanislav Shap

Re: AsciiMath Delimiter not working with MathJax?

Leon Stringer -
Core developers的头像 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"],
});