hugo-academic-mirror/modules/blox-bootstrap/assets/js/mathjax-config.js
George Cushen 9b2e271c7c fix: links
2023-11-07 23:09:38 +00:00

26 lines
653 B
JavaScript

// MathJax Configuration
//
// v2 to v3 upgrade notes:
// - The CommonHTML.linebreaks option is not yet implemented (but may be in a future release)
// - The TeX.noUndefined.attributes option is not yet implemented (but may be in a future release)
window.MathJax = {
options: {
// Don't render math in mindmaps as Markmap has its own math renderer.
ignoreHtmlClass: 'markmap',
},
tex: {
inlineMath: [
['$', '$'],
['\\(', '\\)'],
],
displayMath: [
['$$', '$$'],
['\\[', '\\]'],
],
processEscapes: false,
packages: {'[+]': ['noerrors']},
},
loader: {
load: ['[tex]/noerrors'],
},
};