fix: multiple has-jax in classlist
This commit is contained in:
parent
4f3acae640
commit
5420b79421
|
@ -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';
|
||||
}
|
||||
});
|
||||
// =================================================================
|
||||
|
||||
|
|
Loading…
Reference in New Issue