3

Noting this duplication of topic, I hope this question can also address, what else might be easily done?

This is a bug, or should be added to editing notes.

Congratulations you discovered meta._.stackexchange.com and meta.stackexchange.com

is not a great help.

This is indeed a duplicate in trying to understand what's happening. About 40 (2/3rds of the 60 or so) meta.se backslash backtick search results relate to this.


In the question & answer editor, the input:

`\``

produces the output: ```

Whereas in the comments, the same string correctly renders a code block containing a back-tick.

4
  • Copied & pasted from question/answer editor for comparison: In the question & answer editor, the input: ``` ` ``` produces the output: ` – mcint Oct 19 '20 at 19:51
  • 1
    Duplicate of How to not escape backticks in comments. Also described in How do I format a backslash as code with backticks in comments? which also explains how backslashes can be escaped. – Sebastian Simon Oct 19 '20 at 20:03
  • 2
    … although I may have misread your question. You expect `\`` in posts to render as a code span containing only a backtick, correct? – Sebastian Simon Oct 19 '20 at 20:09
  • I expect there to be one format for writing markdown, question/answer or comment (ignoring the multiline handling difference), and/or a note in the editing tutorial, or a prompt when a ````` is submitted in a comment. – mcint Oct 21 '20 at 3:04
5

The best (only?)* way I've discovered to include a single backtick as a code span in posts is to use double ticks and spaces surrounding:

`` ` ``

Which results in: `

I agree that it's unexpectedly inconsistent, however.

* As pointed out by @hkotsubo, <code>`</code> and <code>&#x60;</code> are also options.

2
  • 4
    You can also use <code>`</code> or <code>&#x60;</code> – hkotsubo Oct 20 '20 at 12:46
  • 2
    You're right! I missed those. I do like the terseness of the five backticks though. – zcoop98 Oct 20 '20 at 14:54

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