1 <p>These should all get escaped:
</p>
15 <p>Left bracket: [
</p>
17 <p>Right bracket: ]
</p>
23 <p>Greater-than:
></p>
35 <p>These should not, because they occur within a code block:
</p>
37 <pre><code>Backslash: \\
70 <p>Nor should these, which occur in code spans:
</p>
72 <p>Backslash:
<code>\\
</code></p>
74 <p>Backtick:
<code>\`
</code></p>
76 <p>Asterisk:
<code>\*
</code></p>
78 <p>Underscore:
<code>\_
</code></p>
80 <p>Left brace:
<code>\{
</code></p>
82 <p>Right brace:
<code>\}
</code></p>
84 <p>Left bracket:
<code>\[
</code></p>
86 <p>Right bracket:
<code>\]
</code></p>
88 <p>Left paren:
<code>\(
</code></p>
90 <p>Right paren:
<code>\)
</code></p>
92 <p>Greater-than:
<code>\
></code></p>
94 <p>Hash:
<code>\#
</code></p>
96 <p>Period:
<code>\.
</code></p>
98 <p>Bang:
<code>\!
</code></p>
100 <p>Plus:
<code>\+
</code></p>
102 <p>Minus:
<code>\-
</code></p>
105 <p>These should get escaped, even though they're matching pairs for
106 other Markdown constructs:
</p>
114 <p>This is a code span with a literal backslash-backtick sequence:
<code>\`
</code></p>
116 <p>This is a tag with unescaped backticks
<span attr='`ticks`'
>bar
</span>.
</p>
118 <p>This is a tag with backslashes
<span attr='\\backslashes\\'
>bar
</span>.
</p>