aboutsummaryrefslogtreecommitdiffstats
path: root/tests/basic/backlash-escapes.html
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@dev.westell.com>2010-02-22 22:59:20 -0500
committerWaylan Limberg <waylan@dev.westell.com>2010-02-22 22:59:20 -0500
commitb9458647a471561cf121edc03b2b8fd5aadff316 (patch)
tree21810589a1197d8c14ad825ee202b11b979eaaad /tests/basic/backlash-escapes.html
parentb96331c66b8421d10f9e040758c82badf97191b1 (diff)
parent3eb86a20f0b20e44b34087c16e20ff40cead7420 (diff)
downloadmarkdown-b9458647a471561cf121edc03b2b8fd5aadff316.tar.gz
markdown-b9458647a471561cf121edc03b2b8fd5aadff316.tar.bz2
markdown-b9458647a471561cf121edc03b2b8fd5aadff316.zip
Merge branch 'tests'
Diffstat (limited to 'tests/basic/backlash-escapes.html')
-rw-r--r--tests/basic/backlash-escapes.html67
1 files changed, 67 insertions, 0 deletions
diff --git a/tests/basic/backlash-escapes.html b/tests/basic/backlash-escapes.html
new file mode 100644
index 0000000..876775f
--- /dev/null
+++ b/tests/basic/backlash-escapes.html
@@ -0,0 +1,67 @@
+<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: &gt;</p>
+<p>Hash: #</p>
+<p>Period: .</p>
+<p>Bang: !</p>
+<p>Plus: +</p>
+<p>Minus: -</p>
+<p>These should not, because they occur within a code block:</p>
+<pre><code>Backslash: \\
+
+Backtick: \`
+
+Asterisk: \*
+
+Underscore: \_
+
+Left brace: \{
+
+Right brace: \}
+
+Left bracket: \[
+
+Right bracket: \]
+
+Left paren: \(
+
+Right paren: \)
+
+Greater-than: \&gt;
+
+Hash: \#
+
+Period: \.
+
+Bang: \!
+
+Plus: \+
+
+Minus: \-
+</code></pre>
+<p>Nor should these, which occur in code spans:</p>
+<p>Backslash: <code>\\</code></p>
+<p>Backtick: <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>\&gt;</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> \ No newline at end of file