diff options
author | Waylan Limberg <waylan@gmail.com> | 2011-12-30 06:31:32 +0800 |
---|---|---|
committer | Mike Dirolf <mike@dirolf.com> | 2012-01-15 00:45:37 +0800 |
commit | 5d177e635c4c0c5ce2db636ba395d0d9b715892d (patch) | |
tree | 2762de828a159f7de31f22f8d4ac0e228137a836 /tests/misc | |
parent | 44caa3aaa1022532f3ecdada6cff7fe5fd0a2c44 (diff) | |
download | markdown-5d177e635c4c0c5ce2db636ba395d0d9b715892d.tar.gz markdown-5d177e635c4c0c5ce2db636ba395d0d9b715892d.tar.bz2 markdown-5d177e635c4c0c5ce2db636ba395d0d9b715892d.zip |
Fixed #68. Blank line is not required after html comments.
Interestingly, the change to the misc/mismatched-tags test is inline with
PHP Markdown Extra's behavior but not markdown.pl, which produces invalid html.
Diffstat (limited to 'tests/misc')
-rw-r--r-- | tests/misc/comments.html | 6 | ||||
-rw-r--r-- | tests/misc/comments.txt | 3 | ||||
-rw-r--r-- | tests/misc/mismatched-tags.html | 5 |
3 files changed, 12 insertions, 2 deletions
diff --git a/tests/misc/comments.html b/tests/misc/comments.html index 005a755..2240ab9 100644 --- a/tests/misc/comments.html +++ b/tests/misc/comments.html @@ -2,4 +2,8 @@ <p>X>0</p> <!-- A comment --> -<div>as if</div>
\ No newline at end of file +<div>as if</div> + +<!-- comment --> + +<p><strong>no blank line</strong></p>
\ No newline at end of file diff --git a/tests/misc/comments.txt b/tests/misc/comments.txt index 68302b0..d9186f0 100644 --- a/tests/misc/comments.txt +++ b/tests/misc/comments.txt @@ -5,3 +5,6 @@ X>0 <!-- A comment --> <div>as if</div> + +<!-- comment --> +__no blank line__ diff --git a/tests/misc/mismatched-tags.html b/tests/misc/mismatched-tags.html index ec087e1..06bd57f 100644 --- a/tests/misc/mismatched-tags.html +++ b/tests/misc/mismatched-tags.html @@ -6,6 +6,9 @@ <p>And this output</p> <p><em>Compatible with PHP Markdown Extra 1.2.2 and Markdown.pl1.0.2b8:</em></p> -<!-- comment --><p><div>text</div><br /></p><br /> +<!-- comment --> +<p><div>text</div><br /></p> + +<p><br /></p> <p>Should be in p</p>
\ No newline at end of file |