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?
Using double backslashes solved the problem for me.
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?
Most helpful comment
Using double backslashes solved the problem for me.