How to escape "$" in R markdown and slidify it?

10,776

You just need to use backslashes \ to escape, not forward slashes:

Line with $\text{Math:} \frac{3}{4}$.

Line with \$ escaped dollar signs \$.
Share:
10,776
Rubi Lam
Author by

Rubi Lam

Updated on June 28, 2022

Comments

  • Rubi Lam
    Rubi Lam almost 2 years

    When write some notes in R Markdown, I need to escape the dollar sign, making sentence within two dollar sign not a formula.

    I have tried \$ blah blah blah \$ and \\$ blah blah blah \\$ or even <p>$ blah blah blah </p>$.

    What works is `$`. But I don't want to highlight it.

    ps: I want to slidify it, so both \$ and \\$ don't work.

  • Rubi Lam
    Rubi Lam about 9 years
    My fault. I mean \$ and \\$, and I slidify it.