Prevent Jekyll’s MathJax Engine from Identifying Dollar Symbol as a Delimiter of an Inline Equation

Dec. 09, 2024

The way of typing dollar symbol Display Markdown file (in Typora) Jekyll (kramdown + MathJax)
between $10 and $20 between $10 and $20 Delimiter of inline equation Delimiter of inline equation
between \$10 and \$20 between $10 and $20 Dollar symbol Delimiter of inline equation
between $10 and $20 between $10 and $20 Dollar symbol $
between $10 and $20 between $10 and $20 Dollar symbol Delimiter of inline equation
between \\$10 and \\$201 between \$10 and \$20 Delimiter of inline equation Dollar symbol
between <span>$</span>10 and <span>$</span>201 between $10 and $20 Delimiter of inline equation Dollar symbol

As shown, to prevent Jekyll’s MathJax engine from identifying dollar symbol as a delimiter of an inline equation, we can use the last two methods, although they would otherwise make an inline equation in the Markdown file (at least in Typora).


References