Skip to content

Commit c572fbd

Browse files
committed
Fix: ensure mathjax processing
1 parent ff1920c commit c572fbd

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

  • bases/rsptx/interactives/runestone/hparsons/js

bases/rsptx/interactives/runestone/hparsons/js/hparsons.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,9 @@ export default class HParsons extends RunestoneBase {
189189
const blocks = document.querySelectorAll(`#${this.divid}-container .parsons-block`);
190190
blocks.forEach(block => {
191191
block.innerHTML = this.decodeHTMLEntities(block.innerHTML);
192+
this.queueMathJax(block);
192193
});
193-
194-
if (window.MathJax && MathJax.typesetPromise) {
195-
MathJax.typesetPromise();
196-
}
197-
}, 0);
194+
}, 10);
198195
}
199196

200197
// Return previous answers in local storage

0 commit comments

Comments
 (0)