2
$\begingroup$

I know I can escape backticks, like `.

I though I could escape backticks within backticks, as I did in a comment, but it's not working here: a\b`. See a comment where it does happen.

Backticks in math mode work if there are no other backticks in the paragraph (although it took a really long time to render as I was editing): $\sigma`(C \setminus A)$.

Single backticks in math mode do not work if there are other backticks in the paragraph: $\sigma`(C \setminus A)$ backticks. (Wait, when I first posted this, the backtick inside math mode and the first backtick outside matched. After edit, they do not. The more data I gather, the more confused I am.)

Escaping creates an error: $\sigma\`(C \setminus A)$ backticks. This is the same as behaviour in comments here, but is not the behaviour I observed on main.

This is baffling to me! Is there any guide to what's going on (other than reading the parser source code)?

$\endgroup$
4
  • $\begingroup$ a`b. OK, escaping backticks within backticks works in a comment. Why not in a post? $\endgroup$
    – LSpice
    Commented Jul 4, 2023 at 4:04
  • $\begingroup$ $\sigma\`(C \setminus A)$ backticks $\endgroup$
    – LSpice
    Commented Jul 4, 2023 at 4:09
  • 3
    $\begingroup$ These posts on Meta Stack Exchange seem related: How do I escape a backtick ` within in-line code in Markdown? and How can the backtick character ` be included in code? $\endgroup$ Commented Jul 4, 2023 at 5:41
  • $\begingroup$ Re, thanks, @MartinSleziak! I think that math mode is introducing an additional layer of complexity, since it seems that Mathjax captures the content of math-mode environments even before much other processing happens. But that is still a useful reference! (Also, let me acknowledge that this is an extremely vague question—I was trying to document some behaviour that I had observed, but it seemed to be changing in unpredictable-by-me ways.) $\endgroup$
    – LSpice
    Commented Jul 4, 2023 at 20:20

0

You must log in to answer this question.

Browse other questions tagged .