How to escape “$” in R markdown and slidify it?

匆匆过客 提交于 2020-06-25 22:14:51

问题


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.


回答1:


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

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

Line with \$ escaped dollar signs \$.


来源:https://stackoverflow.com/questions/29599724/how-to-escape-in-r-markdown-and-slidify-it

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!