-
Bug
-
Resolution: Fixed
-
Minor
-
2.3.3, 2.4.3
-
MOODLE_23_STABLE, MOODLE_24_STABLE
-
MOODLE_23_STABLE, MOODLE_24_STABLE
-
Easy
-
When students get Feedback from a multiple choice answer in the quiz module, all math notation is messed up. I use MathJax, and there seems to be a problem with javascript inside the feedback (see https://tracker.moodle.org/browse/MDL-35343). In within HEAD I have:
<script type="text/x-mathjax-config"> MathJax.Hub.Config({
MMLorHTML:
,
tex2jax:
,
});
</script>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"></script>
It seems that the javascript escapes at some point in the feedback and then writes out the code instead. I am using Firefox, but the problem is also present in Chromium. I have no windows & IE. Moodle 2.3.3+ build 20121123.
It is the same problem as described in this thread: https://moodle.org/mod/forum/discuss.php?d=214198&parent=933794
I have realized, that it has something to do with the css classes feedback and rightanswer. If I change "feedback" or "rightanswer" to something else in the source code, the math will show up right...
UPDATE: If I in "question/type/multichoice/styles.css" remove/comment out the code
.que.multichoice .feedback .rightanswer
*
and add the code
.que.multichoice .feedback .rightanswer
script
then it works fine. - But of course then the right answer will start one line under 'Correct answer:' - but that is a minor issue for me.
- is duplicated by
-
MDL-40106 Quiz, question review part, if the correct answer is fraction, the result shows the fraction, and \frac{2}{3}
-
- Closed
-