aboutsummaryrefslogtreecommitdiffstats
path: root/MarkdownTest/Tests/Backslash escapes.text
diff options
context:
space:
mode:
authorYuri Takhteyev <yuri@freewisdom.org>2008-08-26 00:30:10 -0700
committerYuri Takhteyev <yuri@freewisdom.org>2008-08-26 00:30:10 -0700
commit77aed9225bc0fbb90459a2ead7d99de9aaf1796f (patch)
tree651a09878a967cd6f337fc4261899db067b7b32c /MarkdownTest/Tests/Backslash escapes.text
parenta1e606c995113ef8c65efc75cf36d2d4e9103205 (diff)
downloadmarkdown-77aed9225bc0fbb90459a2ead7d99de9aaf1796f.tar.gz
markdown-77aed9225bc0fbb90459a2ead7d99de9aaf1796f.tar.bz2
markdown-77aed9225bc0fbb90459a2ead7d99de9aaf1796f.zip
Adding old MarkdownTest.pl tests.
Diffstat (limited to 'MarkdownTest/Tests/Backslash escapes.text')
-rw-r--r--MarkdownTest/Tests/Backslash escapes.text120
1 files changed, 120 insertions, 0 deletions
diff --git a/MarkdownTest/Tests/Backslash escapes.text b/MarkdownTest/Tests/Backslash escapes.text
new file mode 100644
index 0000000..5b014cb
--- /dev/null
+++ b/MarkdownTest/Tests/Backslash escapes.text
@@ -0,0 +1,120 @@
+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: `\-`
+
+
+These should get escaped, even though they're matching pairs for
+other Markdown constructs:
+
+\*asterisks\*
+
+\_underscores\_
+
+\`backticks\`
+
+This is a code span with a literal backslash-backtick sequence: `` \` ``
+
+This is a tag with unescaped backticks <span attr='`ticks`'>bar</span>.
+
+This is a tag with backslashes <span attr='\\backslashes\\'>bar</span>.