How to parse MathJax Superscripts ands Subscripts in Hugo

January 05, 2019 - John Law - 1 min read

The trick is simple: we can define a specific LaTeX\LaTeX command for superscripts and subscripts, i.e.:

$\let\sub_ \let\sup^$

before a page document. Then when we use MathJax with Hugo, along with the above definition, we are free from underscores being <em> and so on. No additional CSS is needed.

This is John Law, signing off. You read 46 words.

Copyright © 2020 John Law