优化无法被解析公式的显示效果
This commit is contained in:
@@ -30,6 +30,7 @@ class MD2HTMLExporter(MDExporter):
|
|||||||
|
|
||||||
# 这是正确且推荐的 JS 配置,它与 pymdownx.arithmatex 配合工作
|
# 这是正确且推荐的 JS 配置,它与 pymdownx.arithmatex 配合工作
|
||||||
# 它只寻找 arithmatex 生成的 \(...\) 和 \[...\]
|
# 它只寻找 arithmatex 生成的 \(...\) 和 \[...\]
|
||||||
|
# language=javascript
|
||||||
render_math_in_element = r"""
|
render_math_in_element = r"""
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener("DOMContentLoaded", function () {
|
document.addEventListener("DOMContentLoaded", function () {
|
||||||
@@ -39,7 +40,7 @@ class MD2HTMLExporter(MDExporter):
|
|||||||
{left: '\\(', right: '\\)', display: false}
|
{left: '\\(', right: '\\)', display: false}
|
||||||
],
|
],
|
||||||
throwOnError: false,
|
throwOnError: false,
|
||||||
errorColor: '#cc0000',
|
errorColor: '#F5CF27',
|
||||||
macros: {
|
macros: {
|
||||||
"\\f": "#1f(#2)"
|
"\\f": "#1f(#2)"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -20,7 +20,14 @@
|
|||||||
</body>
|
</body>
|
||||||
{{renderMathInElement}}
|
{{renderMathInElement}}
|
||||||
{{mermaid}}
|
{{mermaid}}
|
||||||
|
<script>
|
||||||
|
setTimeout(()=>{
|
||||||
|
const KatexErrors=document.getElementsByClassName("katex-error")
|
||||||
|
for (const katexError of KatexErrors) {
|
||||||
|
katexError.innerHTML=katexError.title
|
||||||
|
}
|
||||||
|
},200)
|
||||||
|
</script>
|
||||||
<script>
|
<script>
|
||||||
mermaid.initialize({
|
mermaid.initialize({
|
||||||
securityLevel: 'loose',
|
securityLevel: 'loose',
|
||||||
|
|||||||
3
更新日志.txt
3
更新日志.txt
@@ -4,8 +4,11 @@ v1.2.3版 2025.8.22
|
|||||||
优化
|
优化
|
||||||
- 增加翻译稳定性,ai返回结果出错时不会导致程序结束
|
- 增加翻译稳定性,ai返回结果出错时不会导致程序结束
|
||||||
- 增大mineru的并发上限
|
- 增大mineru的并发上限
|
||||||
|
- 优化无法被解析的公式的显示效果
|
||||||
|
|
||||||
修复
|
修复
|
||||||
- 修复agent连接池内存泄漏问题
|
- 修复agent连接池内存泄漏问题
|
||||||
|
- 修复部分markdown公式显示错误的问题
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
v1.2.2版 2025.8.20
|
v1.2.2版 2025.8.20
|
||||||
特性
|
特性
|
||||||
|
|||||||
Reference in New Issue
Block a user