Open bkasel opened 1 month ago
It seems I fixed the issue by inverting the logic for trimming html tags etc for on these lines
I believe it should be if (!$disableautocomplete)
so that formulae may be displayed correctly when no autocorrect is needed.
Thank you for reporting and suggesting solutions. We haven't yet checked the plugin's compatibility with Moodle 4.4 since we are currently at 4.3.5. We need to check first which versions have this problem and then test out your solution. Please bear with us as we work on this.
thanks for the response. I think it it is a logical problem not related to versions.
if $disableautocorrect
is true you don't want to trim tags, which is what the code does.
I tried implementing your solution however when answer contains just text and no equations and the student gives the right answer, it is evaluated as wrong. Did you face this?
I was not using auto-correct, but you are right, the <p>
tags are not being removed if you want the user to type in the correct answer, but that points to the fact there is another issue. Somehow the if clause does not get executed if auto correct is not disabled (i.e. enabled)
is $disableautocorrect
always set to false if you want auto correction for the user?
Hi I am using cardbox 1.0.3 on Moodle 4.4.
Equations in the answer text are not being rendered through mathjax when in practice mode (equations in the prompt are displayed correctly at the same time), while in th overview pane, all equations render correctly.