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.text | 104 +++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 tests/php/extra/Inline HTML with Markdown content.text (limited to 'tests/php/extra/Inline HTML with Markdown content.text') diff --git a/tests/php/extra/Inline HTML with Markdown content.text b/tests/php/extra/Inline HTML with Markdown content.text new file mode 100644 index 0000000..1eb5450 --- /dev/null +++ b/tests/php/extra/Inline HTML with Markdown content.text @@ -0,0 +1,104 @@ +# 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 `
` 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 `
`s in Markdown code span and block + +
+
+ + This is a code block however: + +
+ + Funny isn't it? Here is a code span: `
`. + + + + +
+
+ * 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 `

` are allowed though. +

+ +

_Hello_ _world_

+ +## Preserving attributes and tags on more than one line: + +

+Some _span_ content. +

+ + +## Header confusion bug + + + + + +
Hello World! +============ + +Hello World!
-- cgit v1.2.3