diff options
author | Waylan Limberg <waylan@gmail.com> | 2010-02-12 15:27:59 -0500 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2010-02-12 15:27:59 -0500 |
commit | 8f62bb0a6ce46055a2decbae6b33d53922c758b8 (patch) | |
tree | 7f7d71461ad32817a86d48083934fbb972df38ed /markdown/tests/php/extra/Inline HTML with Markdown content.text | |
parent | ee6fb73b160721e666e72a0921135d6abae19fa4 (diff) | |
parent | 6d30c9ff6b43be9f013e6ea129ff7611c4a6d55b (diff) | |
download | markdown-8f62bb0a6ce46055a2decbae6b33d53922c758b8.tar.gz markdown-8f62bb0a6ce46055a2decbae6b33d53922c758b8.tar.bz2 markdown-8f62bb0a6ce46055a2decbae6b33d53922c758b8.zip |
Merged tests branch
Diffstat (limited to 'markdown/tests/php/extra/Inline HTML with Markdown content.text')
-rw-r--r-- | markdown/tests/php/extra/Inline HTML with Markdown content.text | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/markdown/tests/php/extra/Inline HTML with Markdown content.text b/markdown/tests/php/extra/Inline HTML with Markdown content.text new file mode 100644 index 0000000..1eb5450 --- /dev/null +++ b/markdown/tests/php/extra/Inline HTML with Markdown content.text @@ -0,0 +1,104 @@ +# Markdown inside code blocks + +<div markdown="1"> +foo +</div> + +<div markdown='1'> +foo +</div> + +<div markdown=1> +foo +</div> + +<table> +<tr><td markdown="1">test _emphasis_ (span)</td></tr> +</table> + +<table> +<tr><td markdown="span">test _emphasis_ (span)</td></tr> +</table> + +<table> +<tr><td markdown="block">test _emphasis_ (block)</td></tr> +</table> + +## More complicated + +<table> +<tr><td markdown="1"> +* this is _not_ a list item</td></tr> +<tr><td markdown="span"> +* this is _not_ a list item</td></tr> +<tr><td markdown="block"> +* this _is_ a list item +</td></tr> +</table> + +## With indent + +<div> + <div markdown="1"> + 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.** + </div> +</div> + +## Code block with rogue `</div>`s in Markdown code span and block + +<div> + <div markdown="1"> + + This is a code block however: + + </div> + + Funny isn't it? Here is a code span: `</div>`. + + </div> +</div> + +<div> + <div markdown="1"> + * List item, not a code block + +Some text + + This is a code block. + </div> +</div> + +## No code block in markdown span mode + +<p markdown="1"> + This is not a code block since Markdown parse paragraph + content as span. Code spans like `</p>` are allowed though. +</p> + +<p markdown="1">_Hello_ _world_</p> + +## Preserving attributes and tags on more than one line: + +<p class="test" markdown="1" +id="12"> +Some _span_ content. +</p> + + +## Header confusion bug + +<table class="canvas"> +<tr> +<td id="main" markdown="1">Hello World! +============ + +Hello World!</td> +</tr> +</table> |