Skip to content

Commit f5beeea

Browse files
authored
Create head.html
1 parent ddb4be6 commit f5beeea

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

layouts/partials/head.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- MathJax config and CDN -->
2+
<script>
3+
window.MathJax = {
4+
tex: {
5+
inlineMath: [['$', '$'], ['\\(', '\\)']], // 支持行内公式 $...$
6+
displayMath: [['$$', '$$'], ['\\[', '\\]']] // 支持块级公式 $$...$$
7+
},
8+
svg: {
9+
fontCache: 'global'
10+
}
11+
};
12+
</script>
13+
<script defer src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>

0 commit comments

Comments
 (0)