wiris / moodle-atto_wiris

Moodle Atto's editor plugin for MathType, the leading formula editor and equation writer for the web by Wiris
https://www.wiris.com/moodle
GNU General Public License v3.0
11 stars 13 forks source link

[Fix] MathType filter not working on LaTeX formulas in student text fields #100

Closed carla-at-wiris closed 2 years ago

carla-at-wiris commented 2 years ago

Description

The MathType filter for Moodle doesn't render LaTex formulas to MathType if they are written in student text fields. Insted, they get corrupted.

This PR solves the mentioned issue with the same behaviour as the Moodle default parser, MathJax.

Steps to reproduce

  1. Open a new Moodle instance with the changes on this PR.
  2. Change to student role.
  3. In a student field (for example, a forum), write a latex formula.
  4. Validate that is rendered properly.

#taskid 4878