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
For the purpose of static page generation and unit testing, it would be invaluable to have a synchronous function available, rather than only having a callback available. E.g. something like:
var mathjax = require("mathjax-node/lib/mj-single");
mathjax.config({
...
});
...
function renderToString(latexCode) {
return mathjax.render(latexCode);
}
...
The text was updated successfully, but these errors were encountered:
Unfortunately, that is not possible with the current MathJax architecture, as that code is not atomic (i.e., it may have to wait for files to load), and so the mathjax.render() function you suggest is not currently possible without a lot of restructuring of MathJax's internals. That is not currently planned.
For the purpose of static page generation and unit testing, it would be invaluable to have a synchronous function available, rather than only having a callback available. E.g. something like:
The text was updated successfully, but these errors were encountered: