I’ve come across a few cases where people didn’t know about Escaping or why it didn’t work exactly as they intended it to. Since in most cases I told these people in a PM, today I’ll just do it in this thread for everyone who doesn’t know this yet.
Escaping is the difference between Italics and *some Italics Syntax Demonstration*.
This formatting is done using control structures like BBCode or Markdown, I’ll use latter here.
One of these control structures is the backslash: “\” Its purpose is, if I think about it, to switch the role of a character from control character to output character or the other way around, depending on the situation. In the programming language C for example, “n” is a perfectly normal character to be outputted by the printf function - until you write \n and it turns into a newline.
So if you want to write *Italics* but don’t want it to show up in italics, you’d escape the control character like this:
\*I'm an example!\*
*I’m an example!*
But wait, how do you escape the Backslash? By using it on itself:
\\
\
The more you double it, the deeper it goes:
\\\\
\\
More Examples
# can be used in Markdown to start a heading. \# makes it visible:
\#HashtagNotAHeading
#HashtagNotAHeading
¯\_(ツ)_/¯ contains \ as well as _ which can be used for italics and bold text like *. So without intentional Escaping, it looks like this:
¯\_(ツ)_/¯
¯_(ツ)_/¯
The backslash stops _ from controlling italics. One more backslash:
¯\\_(ツ)_/¯
¯\(ツ)/¯
The backslash is escaped by the other one, the _ is now the italics control character. The ending counterpart is on the right side. The solution is a triple backslash:
¯\\\_(ツ)_/¯
¯\_(ツ)_/¯
Seems fine.
I’m not completely sure about the rules and it probably won’t work everywhere the same way so I’m not sure if I should play it safe and use
¯\\\_(ツ)\_/¯
which doesn’t appear to make a difference here. Just like
\*I'm an example!*
for the first example saving a character instead.
It does help when your emoticon introduces another _ though:
¯\\\_(ツ)_/¯ works fine :slight_smile:
¯\_(ツ)_/¯ works fine
¯\\\_(ツ)\_/¯ works fine :slight_smile:
¯\_(ツ)_/¯ works fine
In conclusion: Check the preview.