--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Not a direct answer but have you considered using MathJax-node to check for processing errors server-side? That seems more natural for this particular use case.
--
MathJax.Hub.Typeset_source = MathJax.Hub.Typeset;MathJax.Hub.Typeset = function(node, callback) { return MathJax.Hub.Typeset_source(node, function() { var jax = MathJax.Hub.getAllJax(node); for (var i = 0, m = jax.length; i < m; i++) { var math = jax[i]; if (!math.texError) { var pre = math.SourceElement().previousSibling.previousSibling; if (pre && pre.className !== "MathJax_Preview") { pre = pre.previousSibling; }; if (pre && pre.className === "MathJax_Preview") { pre.innerHTML = ""; }; } else { var pre = math.SourceElement().previousSibling; if (pre && pre.className === "MathJax") { pre.innerHTML = ""; }; }; }; return callback; });};
<span class="MathJax_Preview"><img src="https://upload.wikimedia.org/math/5/8/4/5844a6bcc33147716ef10bca7465e3e7.png"></span><script type="math/tex">\nabla\times\mathbf{H}=\frac{4\pi}{c} \mathbf{j}+\frac{1}{c}\frac{\partial\mathbf{D}}{\partial t}</script>
<span class="MathJax_Preview"><img src="https://upload.wikimedia.org/math/5/8/4/5844a6bcc33147716ef10bca7465e3e7.png"></span><script type="math/tex">\ERROR \nabla\times\mathbf{H}=\frac{4\pi}{c} \mathbf{j}+\frac{1}{c}\frac{\partial\mathbf{D}}{\partial t}</script>
<span class="MathJax_Preview"><img src="https://upload.wikimedia.org/math/5/8/4/5844a6bcc33147716ef10bca7465e3e7.png"></span><script type="math/tex">\nabla\times\mathbf{H}=\frac{4\pi}{c} \mathbf{j}+\frac{1}{c}\frac{\partial</script>
<!DOCTYPE html><html><head><title>Fallback to preview</title><script type="text/x-mathjax-config">MathJax.Hub.Config({ TeX: { noErrors: { disabled: true }, noUndefined: { disabled: true } }, preRemoveClass: "MathJax_Preview_Alternative"});
MathJax.Hub.Typeset_source = MathJax.Hub.Typeset;MathJax.Hub.Typeset = function(node, callback) { return MathJax.Hub.Typeset_source(node, function() { var jax = MathJax.Hub.getAllJax(node); for (var i = 0, m = jax.length; i < m; i++) { var math = jax[i]; if (!math.texError) { var pre = math.SourceElement().previousSibling.previousSibling; if (pre && pre.className !== "MathJax_Preview") { pre = pre.previousSibling; }; if (pre && pre.className === "MathJax_Preview") { pre.innerHTML = ""; }; } else { var pre = math.SourceElement().previousSibling; if (pre && pre.className === "MathJax") { pre.innerHTML = ""; }; }; }; return callback; });};</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"></script></head><body>
<p>
Correct:
<span class="MathJax_Preview"><img src="https://upload.wikimedia.org/math/5/8/4/5844a6bcc33147716ef10bca7465e3e7.png"></span><script type="math/tex">\nabla\times\mathbf{H}=\frac{4\pi}{c} \mathbf{j}+\frac{1}{c}\frac{\partial\mathbf{D}}{\partial t}</script>
<script type="math/tex">\( \nabla\times\mathbf{H}=\frac{4\pi}{c} \mathbf{j}+\frac{1}{c}\frac{\partial\mathbf{D}}{\partial t} \)</script>
</p>
<p>
Errors with preview fallback:
<span class="MathJax_Preview"><img src="https://upload.wikimedia.org/math/5/8/4/5844a6bcc33147716ef10bca7465e3e7.png"></span><script type="math/tex">\ERROR \nabla\times\mathbf{H}=\frac{4\pi}{c} \mathbf{j}+\frac{1}{c}\frac{\partial\mathbf{D}}{\partial t}</script>
<span class="MathJax_Preview"><img src="https://upload.wikimedia.org/math/5/8/4/5844a6bcc33147716ef10bca7465e3e7.png"></span><script type="math/tex">\nabla\times\mathbf{H}=\frac{4\pi}{c} \mathbf{j}+\frac{1}{c}\frac{\partial</script>
</p>
<p>
Errors without preview fallback:
<script type="math/tex">\ERROR \nabla\times\mathbf{H}=\frac{4\pi}{c} \mathbf{j}+\frac{1}{c}\frac{\partial\mathbf{D}}{\partial t}</script>
<script type="math/tex">\nabla\times\mathbf{H}=\frac{4\pi}{c} \mathbf{j}+\frac{1}{c}\frac{\partial</script>
</p>
</body></html>