`\`
should be rendered as an escaped backslash but it actually ends up displayed as an escaped backtick.
But it is a pain and not obvious for the tex.stackexchange.com
Since the same sequence is rendered differently in the question/answer vs comment.
Please see
Backslash in ticks in comments
with transcripts on tests in question vs comments.
How come it is bydesign that questions and comments are treated differently with the same syntax?
workaround using double backticks — (already mentioned by @ThisSuitIsBlackNot)
Write
``\``
and you will get \
.
\`
just escapes the backtick and prevents it from forming a code section. What's wrong with that? Escaping is good!\`
I needed the following sequence:backtick, backslash, backslash, backtick, backtick
. Which makes sense. I'm escaping the backslash so that it doesn't escape the backtick, and enclosing both the slash and backtick in a code section.``\``
\
— Edit: works! :)