Skip to content

Commit

Permalink
fix: mathjax-load.html: support rendering latex on all browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
minh-ton authored Feb 4, 2024
1 parent a70c731 commit 707b874
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions templates/mathjax-load.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,19 @@
$('.tex-text').show();
});
</script>

<script type="text/javascript" id="MathJax-script" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.0.0/es5/latest?tex-mml-chtml.js">
</script>
<script>
MathJax = {
tex: {
inlineMath: [['$', '$'], ['\\(', '\\)']]
},
svg: {
fontCache: 'global'
}
};
</script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js">
</script>

0 comments on commit 707b874

Please sign in to comment.