-
Bug
-
Resolution: Done
-
Minor
-
4.1.0
-
-
MOODLE_401_STABLE
-
MOODLE_401_STABLE
-
Moodle App 4.1.1
The string regular expression used by MathDisplay library is designed for PHP, so it contains starting and ending slashes:
"/\$\$.\$\$|\\\[.\\\]|\\\(.+\\\)/"
In Javascript, string regular expressions shouldn't have those slashes. This means that the app is not checking properly the formats using "$$" and "(" because it also tries to find a "/" in there. If there is no match, the MathDisplay library isn't loaded and Tex formular aren't displayed properly.