Skip to content

Commit 6946990

Browse files
committed
chore: Add MathJax support to head.html
1 parent 143528d commit 6946990

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

_includes/head.html

+1
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,5 @@
6666

6767
{% include fonts.html %}
6868
{% include google_analytics.html %}
69+
{% include mathjax.html %}
6970
</head>

_includes/mathjax.html

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<script>
2+
MathJax = {
3+
tex: {
4+
inlineMath: [
5+
["$", "$"],
6+
["\\(", "\\)"],
7+
],
8+
},
9+
svg: {
10+
fontCache: "global",
11+
},
12+
};
13+
</script>
14+
<script
15+
type="text/javascript"
16+
id="MathJax-script"
17+
async
18+
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"
19+
></script>

0 commit comments

Comments
 (0)