Skip to content

Commit

Permalink
chore: Add MathJax support to head.html
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiesun committed Jul 2, 2024
1 parent 143528d commit 6946990
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@

{% include fonts.html %}
{% include google_analytics.html %}
{% include mathjax.html %}
</head>
19 changes: 19 additions & 0 deletions _includes/mathjax.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<script>
MathJax = {
tex: {
inlineMath: [
["$", "$"],
["\\(", "\\)"],
],
},
svg: {
fontCache: "global",
},
};
</script>
<script
type="text/javascript"
id="MathJax-script"
async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"
></script>

0 comments on commit 6946990

Please sign in to comment.