The leading \
in an escaped dollar sign is displayed when \$
is used in a code block.
#4754
Milestone
\
in an escaped dollar sign is displayed when \$
is used in a code block.
#4754
I commonly use
$
in bash code blocks to denote the prompt in an interactive session. Something like:Github displays this just fine, but IPython needs
$
to delimit inline LaTeX math expressions (c.f. #3427 and #3428).In most places, IPython does the right thing and only displays $ when a user enters
\$
. However, in a code block, IPython will display something like:When I really want it to look like:
even though I actually entered
\$
in the input to the markdown cell. Like this:I need to escape the
$
in the code block since MathJax interprets it as the beginning of an inline math sequence, even though it's part of a code block.The text was updated successfully, but these errors were encountered: