-
- Downloads
Fix maths output rendering.
There was a bug with how PRT feedback was displayed. We were calling Moodle's format_text function before processing it as CAS text. That does not work in situations where equations are being replaced by images. (It does not matter when using MathJax.) In order to fix this, there is now a restriction that all PRT node feedback must have the same FORMAT_... type. In practice, this is not a serious restriction, and the editing form now validates this.
Showing
- edit_stack_form.php 9 additions, 0 deletionsedit_stack_form.php
- lang/en/qtype_stack.php 1 addition, 0 deletionslang/en/qtype_stack.php
- renderer.php 34 additions, 11 deletionsrenderer.php
- stack/potentialresponsetreestate.class.php 40 additions, 37 deletionsstack/potentialresponsetreestate.class.php
- stack/tests/potentialresponsenode_test.php 18 additions, 10 deletionsstack/tests/potentialresponsenode_test.php
- stack/tests/potentialresponsetree_test.php 13 additions, 4 deletionsstack/tests/potentialresponsetree_test.php
Please register or sign in to comment