You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to add dollar symbols '$' to a markdown cell in a jupyter notebook using the escape character '\'. Adding one is fine but when you add the second something strange happens to the text in between. Images below show two cells in edit mode and published mode.
Am I doing something wrong or is this a bug?
The text was updated successfully, but these errors were encountered:
Adding double backslashes works for the notebook itself but the extra slash gets in the way when converting to Latex/PDF. Is there any other workaround?
In iPython Jupyter notebooks I find that whether you need one backslash vs two backslashes is also dependent on what you've done in the enclosing markdown. e.g. Headings created with the ## tag at the beginning of the line, need two backslashes to escape, say, a dollar sign, whereas headings created using the <h1> html tag only need one backslash to escape, the dollar sign, for example.
So maybe tk3369, you can try avoiding the ## markdown syntax and just use HTML syntax for your comments?
Both of these markdown examples below work fine in Jupyter notebooks:
<h1>19. Model performance on products that cost between \$50 and \$100 </h1>
## 20. Model performance on products that cost between \\$100 and \\$200
Interestingly, just while writing the second example, the editor autodetects the double backslash as a URL in the tooltip (even though it's not a URL, it's escaping a dollar sign)
I am trying to add dollar symbols '$' to a markdown cell in a jupyter notebook using the escape character '\'. Adding one is fine but when you add the second something strange happens to the text in between. Images below show two cells in edit mode and published mode.
Am I doing something wrong or is this a bug?
The text was updated successfully, but these errors were encountered: