From 28caf01c8082dbed3a5ca87b070ffe5657514f01 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Fri, 12 Feb 2010 16:24:15 -0500 Subject: Moved test dir back out of markdown lib. We don't need to install the tests in everyones site-packages. We just need to distrubute them in the tarball for people to run before installing etc. --- .../extra/Inline HTML with Markdown content.xhtml | 125 +++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 tests/php/extra/Inline HTML with Markdown content.xhtml (limited to 'tests/php/extra/Inline HTML with Markdown content.xhtml') diff --git a/tests/php/extra/Inline HTML with Markdown content.xhtml b/tests/php/extra/Inline HTML with Markdown content.xhtml new file mode 100644 index 0000000..4751f78 --- /dev/null +++ b/tests/php/extra/Inline HTML with Markdown content.xhtml @@ -0,0 +1,125 @@ +

Markdown inside code blocks

+ +
+ +

foo

+ +
+ +
+ +

foo

+ +
+ +
+ +

foo

+ +
+ + + +
test emphasis (span)
+ + + +
test emphasis (span)
+ + + +
+ +

test emphasis (block)

+ +
+ +

More complicated

+ + + + + +
+* this is not a list item
+* this is not a list item
+ +
    +
  • this is a list item
  • +
+ +
+ +

With indent

+ +
+
+ +

This text is no code block: if it was, the +closing <div> would be too and the HTML block +would be invalid.

+ +

Markdown content in HTML blocks is assumed to be +indented the same as the block opening tag.

+ +

This should be the third paragraph after the header.

+ +
+
+ +

Code block with rogue </div>s in Markdown code span and block

+ +
+
+ +

This is a code block however:

+ +
</div>
+
+ +

Funny isn't it? Here is a code span: </div>.

+ +
+
+ +
+
+ +
    +
  • List item, not a code block
  • +
+ +

Some text

+ +
This is a code block.
+
+ +
+
+ +

No code block in markdown span mode

+ +

+ This is not a code block since Markdown parse paragraph + content as span. Code spans like </p> are allowed though. +

+ +

Hello world

+ +

Preserving attributes and tags on more than one line:

+ +

+Some span content. +

+ +

Header confusion bug

+ + + + + +
Hello World! +============ + +Hello World!
\ No newline at end of file -- cgit v1.2.3