I'm trying to set up jekyll to display math properly.
The problem is nothing renders if I do not nest equations inside div tags to protect them from the markdown parser :(
---
layout: default
math: true
---
# Using Mathjax
along markdown parsers is a real pain...
$$ a + b = c $$
doesn't show, though the following does:
<div>
$$ x + y + c $$
</div>
The layout tests includes the following mathjax script through an include {% if page.math %}
:
<script async src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=TeX-AMS-MML_CHTML"></script>
I'm confused because:
- jekyll pretends to use kramdown by default
- kramdown
pretends to support mathjax by default with the above syntax.
There is already a lot on this topic, however much is outdated! Any help for a smooth and simple configuration would be greatly appreciated.