~j-james/math

807946c8874c38995cc4030bc347da0c9c5c6a71 — j-james a month ago 528b76a
Switch to KaTeX rendering
2 files changed, 11 insertions(+), 23 deletions(-)

M _config.yml
M _includes/mathjax.html
M _config.yml => _config.yml +1 -1
@@ 1,3 1,3 @@
title: j-james/math
theme: jekyll-theme-minimal
logo: assets/compass.jpg
logo: https://j-james.me/assets/compass.jpg

M _includes/mathjax.html => _includes/mathjax.html +10 -22
@@ 1,24 1,12 @@
<head>
    <link rel='icon' type='image/jpg' href='https://j-james.me/assets/compass.jpg'/>
    <style TYPE='text/css'>
          code.has-jax {font: inherit; font-size: 100%; background: inherit; border: inherit;}
    </style>
    <script type='text/x-mathjax-config'>
        MathJax.Hub.Config({
            tex2jax: {
                inlineMath: [['$','$'], ['\\(','\\)']],
                skipTags: ['script', 'noscript', 'style', 'textarea', 'pre']
            },
            asciimath2jax: {
                delimiters: [['$', '$']]
            }
        });
        MathJax.Hub.Queue(function() {
            var all = MathJax.Hub.getAllJax(), i;
            for(i = 0; i < all.length; i += 1) {
                all[i].SourceElement().parentNode.className += ' has-jax';
            }
        });
    </script>
    <script type='text/javascript' src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-AMS_HTML-full'></script>
	<meta charset="UTF-8"/>
	<link rel="icon" type="image/jpg" href="https://j-james.me/assets/compass.jpg"/>
	<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css" crossorigin="anonymous">
	<script defer src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.js" crossorigin="anonymous"></script>
	<script defer src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/contrib/auto-render.min.js" crossorigin="anonymous"
		onload='renderMathInElement(document.body, {delimiters: [
			{left: "$$", right: "$$", display: true},
			{left: "$", right: "$", display: false}
		]});'>
	</script>
</head>