diff --git a/layouts/partials/script/single-script.html b/layouts/partials/script/single-script.html index 407e1e4..ab5ec91 100644 --- a/layouts/partials/script/single-script.html +++ b/layouts/partials/script/single-script.html @@ -498,7 +498,9 @@ // ============================ mathjax ============================ document.querySelectorAll("mjx-container").forEach(function (x) { - x.parentElement.classList += 'has-jax' + if(!x.parentElement.classList.contains('has-jax')) { + x.parentElement.classList += 'has-jax'; + } }); // =================================================================