This commit is contained in:
Jerry
2023-06-06 23:32:36 +08:00
parent 28d1744b9b
commit 5d52302a38
43 changed files with 431 additions and 387 deletions

View File

@@ -3,7 +3,7 @@ script.
if (!window.MathJax) {
window.MathJax = {
tex: {
inlineMath: [ ['$','$'], ["\\(","\\)"]],
inlineMath: [['$', '$'], ['\\(', '\\)']],
tags: 'ams'
},
chtml: {
@@ -21,16 +21,7 @@ script.
math.end = {node: text, delim: '', n: 0}
doc.math.push(math)
}
}, ''],
insertScript: [200, () => {
document.querySelectorAll('mjx-container').forEach(node => {
if (node.hasAttribute('display')) {
btf.wrap(node, 'div', { class: 'mathjax-overflow' })
} else {
btf.wrap(node, 'span', { class: 'mathjax-overflow' })
}
});
}, '', false]
}, '']
}
}
}