Skip to content

Commit

Permalink
Merge branch 'v3.1-latest'
Browse files Browse the repository at this point in the history
  • Loading branch information
dpvc committed Nov 30, 2020
2 parents ec26c22 + 253ec2b commit 5d758a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/typeset.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ calls. For example,
let promise = Promise.resolve(); // Used to hold chain of typesetting calls
function typeset(code) {
promise = promise.then(() => {return MathJax.typesetPromise(code());})
promise = promise.then(() => MathJax.typesetPromise(code()))
.catch((err) => console.log('Typeset failed: ' + err.message));
return promise;
}
Expand Down Expand Up @@ -120,7 +120,7 @@ I.e., simply use
function typeset(code) {
MathJax.startup.promise = MathJax.startup.promise
.then(() => {code(); return MathJax.typesetPromise()})
.then(() => MathJax.typesetPromise(code()))
.catch((err) => console.log('Typeset failed: ' + err.message));
return MathJax.startup.promise;
}
Expand Down

0 comments on commit 5d758a6

Please sign in to comment.