Katexmm display mode does not work
varunagrawal opened this issue · 5 comments
I followed the instructions in the README
- Gemfile looks like this
group :jekyll_plugins do
gem "github-pages"
gem "jekyll-feed", "~> 0.6"
gem "jekyll-katex", "~> 1.0.0"
end
- I ran bundle install
Using github-pages 200
Using jekyll-katex 1.0.0 (was 0.1.2)
-
I added the CSS file in my header.
-
Added
{% katexmm %} {{content}} {% endkatexmm %}
in mydefault.html
. -
Inline mode
$
with renders great, but display mode with$$
gives me blank.
Any idea what may be up?
I inspected the webpage and it shows
<script type="math/tex; mode=display">\sum_i w(r_i) r_i \frac{\delta r_i}{\delta p_j} = 0</script>
which seems like Mathjax doing something. I tried setting math_engine: nil
in the _config.yml
but that doesn't seem to have any effect. Any ideas what I may try?
@varunagrawal Thanks for the report! The easiest thing for me would be to reproduce the issue.
Is there a simple example that I can use to reproduce locally?
You could try this website: https://github.com/borglab/gtsam.org
It was the one I was trying to update.
I have the same issue,
{% katexmm %} {{content}} {% endkatexmm %}
On my blog layout does not work, but adding the {% katexmm %}
tag inside the actual post does work.
The source of this problem is that the Kramdown markdown parser in Jekyll is already attempting to apply a math transformation to $$
blocks.
The solution is to add this to your config:
kramdown:
math_engine: null
This allowed $$
display blocks inside {% katexmm %}
liquid tags to work correctly for me.