Permalink
Browse files

Support MathJax for rendering equations.

  • Loading branch information...
zuoxingdong committed Feb 26, 2018
1 parent cf0862c commit 119ab3e4aaeb28b7aa67b851a79439ebabb0e34d
Showing with 12 additions and 0 deletions.
  1. +12 −0 _includes/head/custom.html
@@ -23,4 +23,16 @@
<meta name="msapplication-config" content="{{ base_path }}/images/browserconfig.xml?v=M44lzPylqQ">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="{{ base_path }}/assets/css/academicons.css"/>
<script type="text/x-mathjax-config"> MathJax.Hub.Config({ TeX: { equationNumbers: { autoNumber: "all" } } }); </script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
processEscapes: true
}
});
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>
<!-- end custom head snippets -->

0 comments on commit 119ab3e

Please sign in to comment.