18 lines
451 B
JavaScript
18 lines
451 B
JavaScript
window.MathJax = {
|
|
tex: {
|
|
inlineMath: [['\\(', '\\)']],
|
|
displayMath: [['\\[', '\\]']],
|
|
processEscapes: true,
|
|
processEnvironments: true
|
|
},
|
|
options: {
|
|
ignoreHtmlClass: '.*|',
|
|
processHtmlClass: 'arithmatex'
|
|
}
|
|
};
|
|
|
|
const mathJaxScript = document.createElement('script');
|
|
mathJaxScript.src = 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js';
|
|
mathJaxScript.async = true;
|
|
document.head.appendChild(mathJaxScript);
|