Rendering mathematical equations with the Pandoc content format

@jmooring

I’m having trouble rendering math with pandoc and this is what I stumbled upon. This is why I believe the -s flag is necessary.

If it is not necessary, then I apologise for the inconvenience and will try to track down my problem.

Here’s a quick example:

git clone --single-branch -b hugo-forum-topic-49572 https://github.com/jmooring/hugo-testing hugo-forum-topic-49572
cd hugo-forum-topic-49572
hugo server

Files of interest:

  • layouts/partials/math.html
  • layouts/_default/baseof.html (lines 28-30)

Add math = true to front matter to enable MathJax rendering, or enable it for all pages in your site configuration:

[params]
math = true

I’ll try this, thank you!

| jmooring
May 1 |

  • | - |

Here’s a quick example:

git clone --single-branch -b hugo-forum-topic-49572 https://github.com/jmooring/hugo-testing hugo-forum-topic-49572
cd hugo-forum-topic-49572
hugo server

Files of interest:

  • layouts/partials/math.html
  • layouts/_default/baseof.html (lines 28-30)

Add math = true to front matter to enable MathJax rendering, or enable it for all pages in your site configuration:

[params]
  math = true