aboutsummaryrefslogtreecommitdiffstats
path: root/MarkdownTest/Tests_2004/Backslash escapes.text-res
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_2004/Backslash escapes.text-res
parenta1e606c995113ef8c65efc75cf36d2d4e9103205 (diff)
downloadmarkdown-77aed9225bc0fbb90459a2ead7d99de9aaf1796f.tar.gz
markdown-77aed9225bc0fbb90459a2ead7d99de9aaf1796f.tar.bz2
markdown-77aed9225bc0fbb90459a2ead7d99de9aaf1796f.zip
Adding old MarkdownTest.pl tests.
Diffstat (limited to 'MarkdownTest/Tests_2004/Backslash escapes.text-res')
-rw-r--r--MarkdownTest/Tests_2004/Backslash escapes.text-res79
1 files changed, 79 insertions, 0 deletions
diff --git a/MarkdownTest/Tests_2004/Backslash escapes.text-res b/MarkdownTest/Tests_2004/Backslash escapes.text-res
new file mode 100644
index 0000000..1aae6cc
--- /dev/null
+++ b/MarkdownTest/Tests_2004/Backslash escapes.text-res
@@ -0,0 +1,79 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<html>
+<head>
+<meta name="generator" content=
+"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org">
+<title></title>
+</head>
+<body>
+<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>
+</body>
+</html>