blob: ad918f4e853cbb58ad4488523d2a28cdba11adb4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<script>
if (typeof MathJax === 'undefined') {
window.MathJax = {
loader: {
load: ['[tex]/mhchem']
},
{{ if .Site.Params.disableMathJaxMenu }}
options: {
renderActions: {
addMenu: [0, '', '']
}
},
{{ end }}
tex: {
inlineMath: {'[+]': [['$', '$']]},
tags: 'ams',
packages: {'[+]': ['mhchem']}
}
};
(function() {
var script = document.createElement('script');
script.src = 'https://cdn.jsdelivr.net/npm/mathjax@3.1.2/es5/tex-mml-chtml.js';
script.defer = true;
document.head.appendChild(script);
})();
} else {
MathJax.texReset();
MathJax.typeset();
}
</script>
|