When I use exams2moodle()
to generate a cloze quiz, LaTeX symbols are not generated correctly.
Example: (in .Rmd file): ... $\hat{p}$
In Moodle it is presented as: \hat{p}
(Observation: It works in exams2html()
.)
It is converted as: <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mover><mi>p</mi><mo accent="true">^</mo></mover><annotation encoding="application/x-tex">\hat{p}</annotation></semantics></math>
And finally: If I edit the question in Moodle and change to $$\hat{p}$$
, every thing works. But this way, I will have a lot of editions, and that is very bad.