hermit-V2/assets/js/mathjax/mathjax-assistant.js

19 lines
503 B
JavaScript
Raw Normal View History

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