hermit-V2/assets/js/mathjax/mathjax-assistant.js
2023-09-14 15:11:16 +00:00

19 lines
No EOL
503 B
JavaScript

MathJax = {
tex: {
inlineMath: [['$', '$'], ['\\(', '\\)']],
displayMath: [['$$', '$$'], ['\\[', '\\]']],
processEscapes: true,
processEnvironments: true,
},
options: {
skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre'],
enableMenu: false
},
svg: {fontCache: 'global'}
};
window.addEventListener('load', (event) => {
document.querySelectorAll("mjx-container").forEach(function (x) {
x.parentElement.classList += 'has-jax'
})
});