How do you type the dollar sign when you have mathjax installed?

Viewed 4085

So in Jekyll and Markdown, I can't type $ or its HTML equivalent code, and not \$ nor $\$$. How should I type the dollar sign?

3 Answers

Enable processEscapes:

MathJax.Hub.Config({
  tex2jax: {
    inlineMath: [['$','$'], ['\\(','\\)']],
    processEscapes: true
  }
});

Then you can simply use \$ to get a plain $.

I used mathjax's dollar symbol in that paragraph. It works.

enter image description here

enter image description here

Related