You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting the issue. You are correct about replacing math by [math], but not about renaming typeset(). The typeset() function is defined earlier as
letpromise=Promise.resolve();// Used to hold chain of typesetting callsfunctiontypeset(code){promise=promise.then(()=>MathJax.typesetPromise(code())).catch((err)=>console.log('Typeset failed: '+err.message));returnpromise;}
is calling that function. Note that code is the argument being passed to typeset(), and in this case is an arrow function, not a named function. There is no (global) definition of a function called code(), it is just the name of parameter to the typeset() function.
So the only correction needed is the missing brackets. Thanks for pointing that out.
Hi,
In "Typesetting and Converting Mathematics" , there are two errors in the code() example
So :
must be replaced by :
br,
The text was updated successfully, but these errors were encountered: