Blog 1

Random Talk on Random Thoughts

Writing Dollar Signs on Octopress Blogs With MathJax Support

| Comments |

Problem

When I was writing my previous post, I typed three $ in one single paragraph. Although I’d tried adding \ in front of $1, part of the words between $ are still parsed by MathJax.

Solution

According to another page in MathJax’s official documentation, this problem can be solved by surrounding the dollar sign by a span tag with class tex2jax_ignore2, i.e. <span class="tex2jax_ignore">$</span>.


  1. MathJax $\rm \TeX$ and $\rm \LaTeX$ Support— MathJax 2.4 documentation

  2. The tex2jax Preprocessor—MathJax 2.4 documentation

Comments