mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-24 02:20:50 +02:00
26 lines
653 B
JavaScript
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'],
|
|
},
|
|
};
|