aboutsummaryrefslogtreecommitdiffstats
path: root/tests/markdown-test/backlash-escapes.txt
diff options
context:
space:
mode:
authorYuri Takhteyev <yuri@freewisdom.org>2007-03-25 03:58:40 +0000
committerYuri Takhteyev <yuri@freewisdom.org>2007-03-25 03:58:40 +0000
commit0a1c1b5aeb62afa21bd676cfba6cf88821f1176f (patch)
treefed847ee9c4fe0f748f69eb70284dbeb9f3f30f5 /tests/markdown-test/backlash-escapes.txt
parentdfe98ef458d5e05b13962307468904da8d09574c (diff)
downloadmarkdown-0a1c1b5aeb62afa21bd676cfba6cf88821f1176f.tar.gz
markdown-0a1c1b5aeb62afa21bd676cfba6cf88821f1176f.tar.bz2
markdown-0a1c1b5aeb62afa21bd676cfba6cf88821f1176f.zip
Added test cases
Diffstat (limited to 'tests/markdown-test/backlash-escapes.txt')
-rw-r--r--tests/markdown-test/backlash-escapes.txt104
1 files changed, 104 insertions, 0 deletions
diff --git a/tests/markdown-test/backlash-escapes.txt b/tests/markdown-test/backlash-escapes.txt
new file mode 100644
index 0000000..16447a0
--- /dev/null
+++ b/tests/markdown-test/backlash-escapes.txt
@@ -0,0 +1,104 @@
+These should all get escaped:
+
+Backslash: \\
+
+Backtick: \`
+
+Asterisk: \*
+
+Underscore: \_
+
+Left brace: \{
+
+Right brace: \}
+
+Left bracket: \[
+
+Right bracket: \]
+
+Left paren: \(
+
+Right paren: \)
+
+Greater-than: \>
+
+Hash: \#
+
+Period: \.
+
+Bang: \!
+
+Plus: \+
+
+Minus: \-
+
+
+
+These should not, because they occur within a code block:
+
+ Backslash: \\
+
+ Backtick: \`
+
+ Asterisk: \*
+
+ Underscore: \_
+
+ Left brace: \{
+
+ Right brace: \}
+
+ Left bracket: \[
+
+ Right bracket: \]
+
+ Left paren: \(
+
+ Right paren: \)
+
+ Greater-than: \>
+
+ Hash: \#
+
+ Period: \.
+
+ Bang: \!
+
+ Plus: \+
+
+ Minus: \-
+
+
+Nor should these, which occur in code spans:
+
+Backslash: `\\`
+
+Backtick: `` \` ``
+
+Asterisk: `\*`
+
+Underscore: `\_`
+
+Left brace: `\{`
+
+Right brace: `\}`
+
+Left bracket: `\[`
+
+Right bracket: `\]`
+
+Left paren: `\(`
+
+Right paren: `\)`
+
+Greater-than: `\>`
+
+Hash: `\#`
+
+Period: `\.`
+
+Bang: `\!`
+
+Plus: `\+`
+
+Minus: `\-`