diff --git a/layouts/partials/script/single-script.html b/layouts/partials/script/single-script.html index 4a23c59..4382dd5 100644 --- a/layouts/partials/script/single-script.html +++ b/layouts/partials/script/single-script.html @@ -502,7 +502,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'; + } }); // =================================================================