Skip to content

Commit e21bd4b

Browse files
authored
Merge pull request #81 from zuoxingdong/patch-1
Support MathJax for rendering equations.
2 parents cf0862c + 119ab3e commit e21bd4b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

_includes/head/custom.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,16 @@
2323
<meta name="msapplication-config" content="{{ base_path }}/images/browserconfig.xml?v=M44lzPylqQ">
2424
<meta name="theme-color" content="#ffffff">
2525
<link rel="stylesheet" href="{{ base_path }}/assets/css/academicons.css"/>
26+
27+
<script type="text/x-mathjax-config"> MathJax.Hub.Config({ TeX: { equationNumbers: { autoNumber: "all" } } }); </script>
28+
<script type="text/x-mathjax-config">
29+
MathJax.Hub.Config({
30+
tex2jax: {
31+
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
32+
processEscapes: true
33+
}
34+
});
35+
</script>
36+
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>
37+
2638
<!-- end custom head snippets -->

0 commit comments

Comments
 (0)