3

I just posted a comment (see identical problem in the comment below) that contained the text \\?\ in backticks (two backslashes, a question mark, then another backslash.) As you can see here, the text is formatted in a fixed-width font.

In my comment, it is not formatted and the backticks are visible. Why has this happened?

I edited the comment to make sure I was using backticks and everything is as it usually is. I have done this before without any issues, is it something to do with the backslashes?

EDIT: From my test comment below, it seems that the final backslash escapes the terminating backtick, causing the first backtick to be ignored. If I double the final backslash this doesn't fix the problem, so I'm a bit confused about what the correct escaping method would be in this situation.

4
  • This is a test comment with the same `\\?` text to see if it happens here also.
    – Malvineous
    Commented Jan 29, 2017 at 12:21
  • Hm... Possible solution: \\?\ ... Add a trailing <space>? Markdown by default uses backslashes to escape formatting
    – undo
    Commented Jan 29, 2017 at 12:27
  • This is a test comment with double backticks \\?\.
    – DavidPostill Mod
    Commented Jan 29, 2017 at 12:36
  • @Rahul2001 Doubling the backticks is better ...
    – DavidPostill Mod
    Commented Jan 29, 2017 at 12:40

1 Answer 1

2

In my comment, it is not formatted and the backticks are visible.

In a comment you need to double the backticks to prevent the \ escaping the closing backtick:

``\\?\``
1
  • Aha, had no idea that was an option! Thanks.
    – Malvineous
    Commented Jan 29, 2017 at 12:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .