隐藏mathjax错误警告

This commit is contained in:
xunbu
2025-05-26 12:56:16 +08:00
parent 76e56532e2
commit 30303b1b85
2 changed files with 3 additions and 10 deletions

View File

@@ -9,6 +9,7 @@
padding: 2vh 10vw;
font-size: 15px;
}
mjx-merror { display: none !important; }
</style>
<script>
MathJax = {
@@ -17,14 +18,12 @@
inlineMath: [['$', '$'], ['\\(', '\\)']],
displayMath: [['$$', '$$'], ['\\[', '\\]']],
processEscapes: true,
formatError: (error) => {
}, // 空函数,不显示任何错误
packages: {'[+]': ['ams']}, // 启用AMS宏包
autoload: {color: [], colorv2: ['color']} // 颜色支持
},
options: {
renderActions: {
addMenu: [0, '', '']
addMenu: [0, '', ''],
}
},
};