diff options
author | Yuri Takhteyev <yuri@freewisdom.org> | 2008-08-26 00:36:50 -0700 |
---|---|---|
committer | Yuri Takhteyev <yuri@freewisdom.org> | 2008-08-26 00:36:50 -0700 |
commit | ebefa9bb10a0b3aebb134ed8fb06b79f97040999 (patch) | |
tree | 89c1fa439ee848c2a0770f11cba3335cd4b4cbbf /MarkdownTest/Tests_2007/Backslash escapes.text | |
parent | 77aed9225bc0fbb90459a2ead7d99de9aaf1796f (diff) | |
download | markdown-ebefa9bb10a0b3aebb134ed8fb06b79f97040999.tar.gz markdown-ebefa9bb10a0b3aebb134ed8fb06b79f97040999.tar.bz2 markdown-ebefa9bb10a0b3aebb134ed8fb06b79f97040999.zip |
Moving Tests to Tests_2007.
Diffstat (limited to 'MarkdownTest/Tests_2007/Backslash escapes.text')
-rw-r--r-- | MarkdownTest/Tests_2007/Backslash escapes.text | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/MarkdownTest/Tests_2007/Backslash escapes.text b/MarkdownTest/Tests_2007/Backslash escapes.text new file mode 100644 index 0000000..5b014cb --- /dev/null +++ b/MarkdownTest/Tests_2007/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>. |