This page tests and documents using MathJax, Latex and AsciiMath with Hugo and markdown.
Getting a Markdown Processor to Ignore Markup
MathJax, AsciiMath, and similar processors use special markup characters in the the html file. Often these characters overlap with markdown’s markup, and the markdown processor will mess things up. There are a number of options:
Use the \
backslash, which is markdown’s escape character, to escape characters that would be processed by markdown. See Escaping Characters in markdown
Create a simple hugo shortcode which does nothing but pass through text verbatim, bypassing the markdown processor. Here’s an example of AsciiMath using the in
(for inline) shortcode: