update index

This commit is contained in:
qiwang067
2022-09-13 23:33:10 +08:00
parent 976d243186
commit 1e7e55e0d9

View File

@@ -52,15 +52,23 @@
return content.replace(/..\/img/g, "img");
})
// hook.doneEach(function () {
// window.MathJax.Hub.Queue(["Typeset", MathJax.Hub, document.getElementById('app')]);
// })
hook.doneEach(function () {
window.MathJax.Hub.Queue(["Typeset", MathJax.Hub, document.getElementById('app')]);
// 每次路由切换时数据全部加载完成后调用,没有参数。
// ...
if (typeof MathJax !== 'undefined') {
MathJax.Hub.Queue(["Typeset", MathJax.Hub])
}
})
}
],
}
</script>
<!-- 公式 -->
<!-- <script type="text/x-mathjax-config">
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX", "output/HTML-CSS"],
@@ -72,23 +80,8 @@
},
"HTML-CSS": { fonts: ["TeX"] }
});
</script> -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code'],
inlineMath: [['$','$'], ['\\(','\\)']],
processEscapes: true
},
}
});
</script>
<script src="//cdn.jsdelivr.net/npm/docsify-katex@latest/dist/docsify-katex.js"></script>
<!-- or <script src="//cdn.jsdelivr.net/gh/upupming/docsify-katex/dist/docsify-katex.js"></script> -->