diff options
author | Yuri Takhteyev <yuri@freewisdom.org> | 2007-03-25 03:58:40 +0000 |
---|---|---|
committer | Yuri Takhteyev <yuri@freewisdom.org> | 2007-03-25 03:58:40 +0000 |
commit | 0a1c1b5aeb62afa21bd676cfba6cf88821f1176f (patch) | |
tree | fed847ee9c4fe0f748f69eb70284dbeb9f3f30f5 /tests/markdown-test/backlash-escapes.html | |
parent | dfe98ef458d5e05b13962307468904da8d09574c (diff) | |
download | markdown-0a1c1b5aeb62afa21bd676cfba6cf88821f1176f.tar.gz markdown-0a1c1b5aeb62afa21bd676cfba6cf88821f1176f.tar.bz2 markdown-0a1c1b5aeb62afa21bd676cfba6cf88821f1176f.zip |
Added test cases
Diffstat (limited to 'tests/markdown-test/backlash-escapes.html')
-rw-r--r-- | tests/markdown-test/backlash-escapes.html | 104 |
1 files changed, 104 insertions, 0 deletions
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 @@ + +<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: > +</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: \> + +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>\></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> + + |