<p>These should all get escaped:</p>
<p>Backslash: \\</p>
<p>Backtick: \`</p>
<p>Asterisk: \*</p>
<p>Underscore: \_</p>
<p>Left brace: \{</p>
<p>Right brace: \}</p>
<p>Left bracket: \[</p>
<p>Right bracket: \]</p>
<p>Left paren: \(</p>
<p>Right paren: \)</p>
<p>Greater-than: \></p>
<p>Hash: \#</p>
<p>Period: \.</p>
<p>Bang: \!</p>
<p>Plus: \+</p>
<p>Minus: \-</p>
<p></p>
<p></p>
<p>These should not, because they occur within a code block:</p>
<pre><code>Backslash: \\
</code></pre><p></p>
<pre><code>Backtick: \`
</code></pre><p></p>
<pre><code>Asterisk: \*
</code></pre><p></p>
<pre><code>Underscore: \_
</code></pre><p></p>
<pre><code>Left brace: \{
</code></pre><p></p>
<pre><code>Right brace: \}
</code></pre><p></p>
<pre><code>Left bracket: \[
</code></pre><p></p>
<pre><code>Right bracket: \]
</code></pre><p></p>
<pre><code>Left paren: \(
</code></pre><p></p>
<pre><code>Right paren: \)
</code></pre><p></p>
<pre><code>Greater-than: \>
</code></pre><p></p>
<pre><code>Hash: \#
</code></pre><p></p>
<pre><code>Period: \.
</code></pre><p></p>
<pre><code>Bang: \!
</code></pre><p></p>
<pre><code>Plus: \+
</code></pre><p></p>
<pre><code>Minus: \-
</code></pre><p></p>
<p></p>
<p>Nor should these, which occur in code spans:</p>
<p>Backslash: <code>\\</code></p>
<p>Backtick: <code></code> \<code></code>`</p>
<p>Asterisk: <code>\*</code></p>
<p>Underscore: <code>\_</code></p>
<p>Left brace: <code>\{</code></p>
<p>Right brace: <code>\}</code></p>
<p>Left bracket: <code>\[</code></p>
<p>Right bracket: <code>\]</code></p>
<p>Left paren: <code>\(</code></p>
<p>Right paren: <code>\)</code></p>
<p>Greater-than: <code>\></code></p>
<p>Hash: <code>\#</code></p>
<p>Period: <code>\.</code></p>
<p>Bang: <code>\!</code></p>
<p>Plus: <code>\+</code></p>
<p>Minus: <code>\-</code></p>
|