1 <p>These should all get escaped:</p> 2 <p>Backslash: \</p> 3 <p>Backtick: `</p> 4 <p>Asterisk: *</p> 5 <p>Underscore: _</p> 6 <p>Left brace: {</p> 7 <p>Right brace: }</p> 8 <p>Left bracket: [</p> 9 <p>Right bracket: ]</p> 10 <p>Left paren: (</p> 11 <p>Right paren: )</p> 12 <p>Greater-than: ></p> 13 <p>Hash: #</p> 14 <p>Period: .</p> 15 <p>Bang: !</p> 16 <p>Plus: +</p> 17 <p>Minus: -</p> 18 <p>These should not, because they occur within a code block:</p> 19 <pre><code>Backslash: \\ 20 21 Backtick: \` 22 23 Asterisk: \* 24 25 Underscore: \_ 26 27 Left brace: \{ 28 29 Right brace: \} 30 31 Left bracket: \[ 32 33 Right bracket: \] 34 35 Left paren: \( 36 37 Right paren: \) 38 39 Greater-than: \> 40 41 Hash: \# 42 43 Period: \. 44 45 Bang: \! 46 47 Plus: \+ 48 49 Minus: \- 50 </code></pre> 51 <p>Nor should these, which occur in code spans:</p> 52 <p>Backslash: <code>\\</code></p> 53 <p>Backtick: <code>\`</code></p> 54 <p>Asterisk: <code>\*</code></p> 55 <p>Underscore: <code>\_</code></p> 56 <p>Left brace: <code>\{</code></p> 57 <p>Right brace: <code>\}</code></p> 58 <p>Left bracket: <code>\[</code></p> 59 <p>Right bracket: <code>\]</code></p> 60 <p>Left paren: <code>\(</code></p> 61 <p>Right paren: <code>\)</code></p> 62 <p>Greater-than: <code>\></code></p> 63 <p>Hash: <code>\#</code></p> 64 <p>Period: <code>\.</code></p> 65 <p>Bang: <code>\!</code></p> 66 <p>Plus: <code>\+</code></p> 67 <p>Minus: <code>\-</code></p>