Skip to content

Commit

Permalink
Switch to KaTeX for equation typesetting.
Browse files Browse the repository at this point in the history
  • Loading branch information
bemasher committed Aug 18, 2016
1 parent 911713f commit 823ed3a
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 20 deletions.
5 changes: 4 additions & 1 deletion docs/_includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
},
});
</script>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=default"></script>

<link rel="stylesheet" href="{{ site.baseurl }}/css/katex.min.css">
<script src="{{ site.baseurl }}/js/katex.min.js"></script>
<script src="{{ site.baseurl }}/js/auto-render.min.js"></script>

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
Expand Down
11 changes: 11 additions & 0 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,16 @@
</div>
{% endif %}
</div>
<script>
renderMathInElement(
document.body,
{
delimiters: [
{left: "$$", right: "$$", display: true}
{left: "[[", right: "]]", display: false}
]
}
);
</script>
</body>
</html>
Loading

0 comments on commit 823ed3a

Please sign in to comment.