From 2dbfcc0c510b46c9bfa288cb370b2d4f7fe7555d Mon Sep 17 00:00:00 2001 From: Artem Date: Tue, 24 Jun 2008 20:39:50 +0500 Subject: second commit --- tests2/tm-cases-new/escapes.html | 79 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 tests2/tm-cases-new/escapes.html (limited to 'tests2/tm-cases-new/escapes.html') diff --git a/tests2/tm-cases-new/escapes.html b/tests2/tm-cases-new/escapes.html new file mode 100644 index 0000000..bcf6f3c --- /dev/null +++ b/tests2/tm-cases-new/escapes.html @@ -0,0 +1,79 @@ +

Backslash-escapes: basics

+ +

**don't shout** +

+ +

*don't emphasize* +

+ +

_literal underscores_ +

+ +

__more literal underscores__ +

+ +

This header has trailing hash marks ##

+ +

Backslash-escapes: links

+ +

This is not a [link](/url/). +

+ +

This is a link, not an image link: !link. +

+ +

Should this be an http://autolink\ or not? +I'll ask on markdown-discuss. +I suspect PHP markdown is considering this NOT an autolink. +

+ +

This is not a [link definition][link1] but this is. +

+ +

Backslash-escapse: code blocks

+ +

In a code block: +

+ +
escapes should \*not\* be \_interpreted\_
+even \`backticks\`
+
+ +

Backslash-escapse: code spans

+ +

Getting backticks and backslash-escapes working correctly with +code spans can be tricky: +

+ +

a normal code span +

+ +

need multiple backticks to include a literal ` backtick +

+ +

`use a leading space to start a code span with a backtick +

+ +

use a trailing space to end a code span with a backtick` +

+ +

backslash-escapes \(are\) \*not\* \`interpreted\` in a code span +

+ +

`a code span prefixed with a literal backtick +

+ +

`not a code span` +

+ +

Note A: The (?!`) after the \1 group in the +_DoCodeSpans()/_do_code_spans() regex is necessary to ensure that a backtick +doesn't match at the start of the code block (group \2) in an example like +this: +

+ + -- cgit v1.2.3