Open varunagrawal opened 4 years ago
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.
I followed the instructions in the README
Gemfile looks like this
I ran bundle install
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?