提交 74188c69 编写于 作者: EvanOne(文一)'s avatar EvanOne(文一)

fix(#16): Solved that mathjax is not working properly

上级 e287b3b8
script(type="text/x-mathjax-config").
var mathjaxMhchem = '';
var mathJaxTex = {
equationNumbers: {
autoNumber: "AMS"
}
};
if (!{ theme.math.mathjax.mhchem.enable }) {
mathjaxMhchem = '!{ theme.math.mathjax.mhchem.mhchem_js }';
MathJax.Ajax.config.path['mhchem'] = mathjaxMhchem;
mathJaxTex.extensions = [mathjaxMhchem];
} else {
mathJaxTex.extensions = ["AMSmath.js","AMSsymbols.js"];
}
MathJax.Hub.Config({
menuSettings: {
zoom: "None"
},
showMathMenu: false,
jax: ["input/TeX","output/CommonHTML"],
extensions: ["tex2jax.js"],
TeX: mathJaxTex,
tex2jax: {
inlineMath: [['$', '$'], ['\\(', '\\)']],
displayMath: [["\\[", "\\]"]],
processEscapes: true,
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
},
TeX: {
extensions: [mathjaxMhchem],
equationNumbers: {
autoNumber: 'AMS'
}
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册