后台预览效果![](https://github.com/Crazypointer/Picture/blob/master/iShot2021-10-13%2001.32.17.png?raw=true)
博客中实际显示的效果![](https://github.com/Crazypointer/Picture/blob/master/iShot2021-10-13%2001.34.04.png?raw=true)
由于主题自带mathjax插件,所以没有加以下代码:
<script src="//cdn.jsdelivr.net/npm/mathjax@2.7.5/unpacked/MathJax.js?config=TeX-MML-AM_CHTML" defer></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
MathJax.Hub.Config({
'HTML-CSS': {
matchFontHeight: false
},
SVG: {
matchFontHeight: false
},
CommonHTML: {
matchFontHeight: false
},
tex2jax: {
inlineMath: [
['$','$'],
['\\(','\\)']
],
displayMath: [["$$", "$$"], ["\\[", "\\]"]]
}
});
});
</script>
`