I want to write something basic like "10 $US" but sometimes it makes the text look weird. It changes the font and writes italic text. And sometimes it will insert a newline. For example in my answer for this question.

How can I safely insert a dollar sign?

  • 1
    For reference: the list of MathJax-enabled sites. A couple of them use \$ as formula delimiters, so on those sites the lone $ will render normally. But on most, $ is a MathJax delimiter. – user259867 Aug 9 '15 at 3:35
  • [backslash] [dollar sign] – Mazura Jun 21 '18 at 2:21

Many Stack Exchange sites which involve a strong use of mathematics will have MathJax enabled for easily creating mathematical formulas. This script uses the dollar sign as a beginning and ending delimiter, so you will have to escape them like so: \$

| improve this answer | |

`$` - code insertion worked for me in something like MathJax. Just \$ was printed as is.

| improve this answer | |
  • The source of the [now-fixed] linked answer shows that just \$ works perfectly. – Lightness Races in Orbit Dec 26 '19 at 1:01
  • I just suggested the one method that suits me. Maybe someone will work on the same system, which works weirdly with \ $, as in my situation – Roman Filippov Dec 27 '19 at 8:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .