Skip to content

Commit 47c05e9

Browse files
committed
\var and \simplify cope with MathJax retries
1 parent 4b6b95e commit 47c05e9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

themes/default/files/scripts/standalone_scripts/numbas-mathjax.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737

3838
parser.Push(mml);
3939
} catch(e) {
40+
if(e.retry instanceof Promise) {
41+
throw e;
42+
}
4043
console.error(e);
4144
throw(new Numbas.Error('mathjax.math processing error', {message:e.message, expression:expr}));
4245
}
@@ -63,6 +66,9 @@
6366

6467
parser.Push(mml);
6568
} catch(e) {
69+
if(e.retry instanceof Promise) {
70+
throw e;
71+
}
6672
console.error(e);
6773
throw(new Numbas.Error('mathjax.math processing error', {message:e.message, expression:expr}));
6874
}

0 commit comments

Comments
 (0)