how to show underscores symbol in markdown?

Viewed 113114

in markdown, my_stock_index is mystockindex. But I want it to show my_stock_index. How can do that?

3 Answers

The single backslash escape works fine in Jupyter unless you are in an italicized block, in which case, you want to close the italicized block, write the escaped underscore, then start the italicized block again.

_the cookie_\__cutter in italics_

There is also the option to use backticks. This is actually used to refer to mark the text as inline code, but where else would you use underscores right? Besides it is much easier than managing the backslash stuff :)

`my_stock_index`
Related