MathJax not triggered when using activity "TextField"

Issue #60 resolved
Johannes Hass created an issue

Moodle Version is 3.10

The problem (at least for me) is easily reproduced: Create a “Textfield” activity and insert some mathematical equations. They will not be rendered by MathJax, instead staying at their Tex-notation. If I’m using a different type of course format, this problem is not triggered and it does render correctly.

This what it looks like:

This is what it looks like when I switch to, e.g. Edwiser Course Format:

Comments (11)

  1. Johannes Hass reporter

    Okay, had the time to do further research. Now, when I use a different course format, say, Edwiser, then window.Mathjax as a global object does exist. But when I use Tiles as a course format then window.Mathjax is null.

    This, of course, explains why the formulas are not typeset.

  2. David Watson repo owner

    @Johannes Hass thanks for the report and apologies for the long delay. The fix for this is in the branch for Moodle 3.11 if you would like to test. I plan to release to moodle.org no later than 2-3 weeks

  3. Johannes Hass reporter

    Thanks a lot! I’ll try to test it as soon as possible - school starts again in 4 weeks, though, so there’s no actual rush 😉

  4. Johannes Hass reporter

    Sorry for the late reply but I just installed the latest version and the problem does not actually seem to be fixed. I can see the formulas now in “Edit” mode - but as soon as I exit editing mode, I just see the raw Latex code again.

    This is editing mode on:

    This is with editing mode off:

  5. David Watson repo owner

    Johannes please would you try again using the latest 3.11 version from moodle.org? Thanks

  6. Thomas Unkelbach

    My moodle-Hoster installed the newest Version 3.11.1.1 on Friday, but I still can see the formulas correctly only when I switch OFF the “Animated Navigation”. Johannes, can you test this please?

  7. Log in to comment