Skip to content

Commit 6725cc2

Browse files
authored
Merge pull request #402 from typelevel/mathjax
Bring back mathjax
2 parents 9e5ca71 + 938bcee commit 6725cc2

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

_includes/_head.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,17 @@
1515
<link rel="stylesheet" href="{{ '/css/main.css' | relative_url }}">
1616

1717
<link rel="alternate" type="application/rss+xml" title="Blog articles" href="{% link blog/feed.rss %}" />
18-
18+
19+
{% if page.meta.mathjax %}
20+
<script>
21+
window.MathJax = {
22+
tex: {
23+
inlineMath: [['$', '$'], ['\\(', '\\)']]
24+
}
25+
};
26+
</script>
27+
<script type="text/javascript" id="MathJax-script" async
28+
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js">
29+
</script>
30+
{% endif %}
1931
</head>

0 commit comments

Comments
 (0)