Skip to content

Commit 67bc979

Browse files
committed
a
1 parent c56568a commit 67bc979

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ plugins:
1414
- jemoji
1515

1616
kramdown:
17-
math_engine: MathJax
17+
math_engine: null
1818

1919
### Navbar Settings ###
2020
nav_exclude: # The following paths are excluded from navbar

_include/head.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

_include/latex.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<script type="text/x-mathjax-config">
2+
MathJax.Hub.Config({
3+
TeX: {
4+
equationNumbers: {
5+
autoNumber: "AMS"
6+
}
7+
},
8+
tex2jax: {
9+
inlineMath: [ ['$','$'] ],
10+
displayMath: [ ['$$','$$'] ],
11+
processEscapes: true,
12+
}
13+
});
14+
</script>
15+
<script type="text/javascript"
16+
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
17+
</script>

_posts/2025-04-02-Github中的markdown渲染数学公式的注意事项.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ color: success # primary / secondary / success / danger / warning / info / light
66
description: 在上传至Github的`markdown`文件中,输入公式要特别注意,否则可能会导致在本地渲染成功,而github网页预览时渲染失败的问题。
77
---
88

9-
{% include head.html %}
9+
{% include latex.html %}
1010

1111
在上传至Github的`markdown`文件中,输入公式要特别注意,否则可能会导致在本地渲染成功,而github网页预览时渲染失败的问题。
1212

0 commit comments

Comments
 (0)