Project

General

Profile

Bug #8317

Math formula not rendered properly on campus.chamilo.org

Added by Matthieu Moy almost 3 years ago. Updated almost 3 years ago.

Status:
Feature implemented
Priority:
Normal
Category:
Exercises
Target version:
-
Start date:
06/07/2016
Due date:
% Done:

100%

Estimated time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

Hi,

On http://campus.chamilo.org, I'm able to create math formula using the editor for exercice questions. However, the equations do not render properly in the quizz itself: it displays the TeX text of the equations, not the rendered equation. In other words, it renders well within CKEditor only.

It seems there are two problems:

  • Chamilo strips backslashes, so when I enter a formula like \frac{1}{\pi}, the generated HTML is only frac{1}{pi}.
  • The generated HTML is:
      <span class="math-tex">`int_a^b f(x) dx`</span>

    but I don't see a library like MathJax loaded to render it properly.

It is supposed to work? Did I miss anything?

In case it helps, the problem is visible here: https://campus.chamilo.org/main/exercice/exercise_submit.php?cidReq=ENSIMAGTEST&id_session=0&gidReq=0&gradebook=0&origin=&exerciseId=46783&origin=&learnpath_id=&learnpath_item_id=&preview=1 (but this is a private course)

Thanks !


Files

mathjax.png (12.9 KB) mathjax.png Yannick Warnier, 06/07/2016 15:16

History

#1

Updated by Yannick Warnier almost 3 years ago

This is fixed now. We just didn't activate the mathjax extension properly on the free campus. Thanks for reporting.

#2

Updated by Yannick Warnier almost 3 years ago

  • Status changed from New to Feature implemented
  • Assignee set to Yannick Warnier
  • % Done changed from 0 to 100

Also available in: Atom PDF