From 0a1c1b5aeb62afa21bd676cfba6cf88821f1176f Mon Sep 17 00:00:00 2001 From: Yuri Takhteyev Date: Sun, 25 Mar 2007 03:58:40 +0000 Subject: Added test cases --- tests/markdown-test/backlash-escapes.html | 104 ++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 tests/markdown-test/backlash-escapes.html (limited to 'tests/markdown-test/backlash-escapes.html') diff --git a/tests/markdown-test/backlash-escapes.html b/tests/markdown-test/backlash-escapes.html new file mode 100644 index 0000000..77ecde7 --- /dev/null +++ b/tests/markdown-test/backlash-escapes.html @@ -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: \- +

+ + -- cgit v1.2.3