diff --git a/unpacked/MathJax.js b/unpacked/MathJax.js index 182809727..8ccb283c1 100644 --- a/unpacked/MathJax.js +++ b/unpacked/MathJax.js @@ -2306,7 +2306,10 @@ MathJax.Hub = { result = MathJax.OutputJax[jax.outputJax].Process(script,state); if (result !== false) { script.MathJax.state = STATE.PROCESSED; - if (script.MathJax.preview) {script.MathJax.preview.innerHTML = ""} + if (script.MathJax.preview) { + script.MathJax.preview.innerHTML = ""; + script.MathJax.preview.style.display = "none"; + } // // Signal that new math is available // @@ -2390,7 +2393,10 @@ MathJax.Hub = { var node = document.getElementById(error.id); if (node) node.parentNode.removeChild(node); if (script.parentNode) script.parentNode.insertBefore(error,script); - if (script.MathJax.preview) {script.MathJax.preview.innerHTML = ""} + if (script.MathJax.preview) { + script.MathJax.preview.innerHTML = ""; + script.MathJax.preview.style.display = "none"; + } // // Save the error for debugging purposes // Report the error as a signal diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js index 2a276b7b6..3d17f502c 100644 --- a/unpacked/jax/output/CommonHTML/jax.js +++ b/unpacked/jax/output/CommonHTML/jax.js @@ -603,6 +603,7 @@ // if (data.preview) { data.preview.innerHTML = ""; + data.preview.style.display = "none"; script.MathJax.preview = data.preview; delete data.preview; } diff --git a/unpacked/jax/output/HTML-CSS/jax.js b/unpacked/jax/output/HTML-CSS/jax.js index 144320234..49c29cab3 100644 --- a/unpacked/jax/output/HTML-CSS/jax.js +++ b/unpacked/jax/output/HTML-CSS/jax.js @@ -765,7 +765,10 @@ if (script && script.parentNode && script.MathJax.elementJax) { var div = (script.MathJax.elementJax.HTMLCSS||{}).div; if (div) {div.className = div.className.split(/ /)[0]} - if (script.MathJax.preview) {script.MathJax.preview.innerHTML = ""} + if (script.MathJax.preview) { + script.MathJax.preview.innerHTML = ""; + script.MathJax.preview.style.display = "none"; + } } } // diff --git a/unpacked/jax/output/PreviewHTML/jax.js b/unpacked/jax/output/PreviewHTML/jax.js index b86ad7867..643b659e0 100644 --- a/unpacked/jax/output/PreviewHTML/jax.js +++ b/unpacked/jax/output/PreviewHTML/jax.js @@ -268,6 +268,7 @@ // if (data.preview) { data.preview.innerHTML = ""; + data.preview.style.display = "none"; script.MathJax.preview = data.preview; delete data.preview; } diff --git a/unpacked/jax/output/SVG/jax.js b/unpacked/jax/output/SVG/jax.js index 65101a412..ecfe3c61e 100644 --- a/unpacked/jax/output/SVG/jax.js +++ b/unpacked/jax/output/SVG/jax.js @@ -386,6 +386,7 @@ // if (data.preview) { data.preview.innerHTML = ""; + data.preview.style.display = "none"; script.MathJax.preview = data.preview; delete data.preview; }