2.4Backslash escapes

Any ASCII punctuation character may be backslash-escaped:

Example 12Try It
\!\"\#\$\%\&\'\(\)\*\+\,\-\.\/\:\;\<\=\>\?\@\[\\\]\^\_\`\{\|\}\~
<p>!&quot;#$%&amp;'()*+,-./:;&lt;=&gt;?@[\]^_`{|}~</p>

Backslashes before other characters are treated as literal backslashes:

Example 13Try It
\→\A\a\ \3\φ\«
<p>\→\A\a\ \3\φ\«</p>

Escaped characters are treated as regular characters and do not have their usual Markdown meanings:

Example 14Try It
\*not emphasized*
\<br/> not a tag
\[not a link](/foo)
\`not code`
1\. not a list
\* not a list
\# not a heading
\[foo]: /url "not a reference"
\&ouml; not a character entity
<p>*not emphasized*
&lt;br/&gt; not a tag
[not a link](/foo)
`not code`
1. not a list
* not a list
# not a heading
[foo]: /url &quot;not a reference&quot;
&amp;ouml; not a character entity</p>

If a backslash is itself escaped, the following character is not:

Example 15Try It
\\*emphasis*
<p>\<em>emphasis</em></p>

A backslash at the end of the line is a hard line break:

Example 16Try It
foo\
bar
<p>foo<br />
bar</p>

Backslash escapes do not work in code blocks, code spans, autolinks, or raw HTML:

Example 17Try It
`` \[\` ``
<p><code>\[\`</code></p>
Example 18Try It
    \[\]
<pre><code>\[\]
</code></pre>
Example 19Try It
~~~
\[\]
~~~
<pre><code>\[\]
</code></pre>
Example 20Try It
<https://example.com?find=\*>
<p><a href="https://example.com?find=%5C*">https://example.com?find=\*</a></p>
Example 21Try It
<a href="/bar\/)">
<a href="/bar\/)">

But they work in all other contexts, including URLs and link titles, link references, and info strings in fenced code blocks:

Example 22Try It
[foo](/bar\* "ti\*tle")
<p><a href="/bar*" title="ti*tle">foo</a></p>
Example 23Try It
[foo]

[foo]: /bar\* "ti\*tle"
<p><a href="/bar*" title="ti*tle">foo</a></p>
Example 24Try It
``` foo\+bar
foo
```
<pre><code class="language-foo+bar">foo
</code></pre>