撤回了mathjax本地化

This commit is contained in:
xunbu
2025-05-26 12:39:45 +08:00
parent 0b40d96222
commit 76e56532e2
8 changed files with 95 additions and 92 deletions

View File

@@ -10,14 +10,24 @@
font-size: 15px;
}
</style>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
messageStyle: "none",
tex2jax: {
inlineMath: [ ['$','$'], ["\\\\(","\\\\)"] ],
processEscapes: true
}
});
<script>
MathJax = {
loader: {load: ['[tex]/ams']},
tex: {
inlineMath: [['$', '$'], ['\\(', '\\)']],
displayMath: [['$$', '$$'], ['\\[', '\\]']],
processEscapes: true,
formatError: (error) => {
}, // 空函数,不显示任何错误
packages: {'[+]': ['ams']}, // 启用AMS宏包
autoload: {color: [], colorv2: ['color']} // 颜色支持
},
options: {
renderActions: {
addMenu: [0, '', '']
}
},
};
</script>
{{MathJax}}
</head>