问题
So in Jekyll and Markdown, I can't type $ or its HTML equivalent code, and not \$ nor $\$$. How should I type the dollar sign?
回答1:
To prevent MathJax from using the dollar sign as a delimiter, you can put it in a span, like so:
<span>$</span>
Alternatively, you can enable processEscapes and then you can use the backslash escape \$ for the dollar sign.
回答2:
Enable processEscapes:
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
processEscapes: true
}
});
Then you can simply use \$ to get a plain $.
回答3:
I used mathjax's dollar symbol in that paragraph. It works.
来源:https://stackoverflow.com/questions/36030033/how-do-you-type-the-dollar-sign-when-you-have-mathjax-installed