Skip to content

Commit

Permalink
尝试使用新版MathJax
Browse files Browse the repository at this point in the history
  • Loading branch information
GasinAn committed Oct 10, 2024
1 parent c506c49 commit 07303a3
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@

{%- include custom-head.html -%}
<!-- Mathjax Support -->
<script src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=TeX-AMS_CHTML" type="text/javascript"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
processEscapes: true
<script>
MathJax = {
tex: {
inlineMath: [['$', '$'], ['\\(', '\\)']]
},
svg: {
fontCache: 'global'
}
});
</script>
};
</script>
<script type="text/javascript" id="MathJax-script" async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js">
</script>
</head>

0 comments on commit 07303a3

Please sign in to comment.