diff --git a/unpacked/MathJax.js b/unpacked/MathJax.js index 5be4cb7c4..a663279e5 100644 --- a/unpacked/MathJax.js +++ b/unpacked/MathJax.js @@ -2307,7 +2307,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 // @@ -2391,7 +2394,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 6f30fb105..ccb6810c1 100644 --- a/unpacked/jax/output/CommonHTML/jax.js +++ b/unpacked/jax/output/CommonHTML/jax.js @@ -604,6 +604,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 43bb917e7..ced75f1a1 100644 --- a/unpacked/jax/output/HTML-CSS/jax.js +++ b/unpacked/jax/output/HTML-CSS/jax.js @@ -764,7 +764,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 08cbe0a8c..3eaa6d4d7 100644 --- a/unpacked/jax/output/SVG/jax.js +++ b/unpacked/jax/output/SVG/jax.js @@ -395,6 +395,7 @@ // if (data.preview) { data.preview.innerHTML = ""; + data.preview.style.display = "none"; script.MathJax.preview = data.preview; delete data.preview; }