Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Oct 11, 2022

Conversation

carla-at-wiris
Copy link
Contributor

@carla-at-wiris carla-at-wiris commented Oct 3, 2022

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

@carla-at-wiris carla-at-wiris added the type:bug Something isn't working label Oct 3, 2022
@carla-at-wiris carla-at-wiris self-assigned this Oct 3, 2022
@carla-at-wiris carla-at-wiris changed the base branch from stable to main October 3, 2022 10:11
Fix the error when parsing latex formulas.
Using the same mechanism as mathjax

#taskid 4878
@carla-at-wiris carla-at-wiris merged commit 961a1a4 into main Oct 11, 2022
@carla-at-wiris carla-at-wiris deleted the KB-4878 branch October 11, 2022 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants