aboutsummaryrefslogtreecommitdiffstats
path: root/tests/misc/php.html
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2008-08-22 17:37:37 -0400
committerWaylan Limberg <waylan@gmail.com>2008-08-22 17:37:37 -0400
commita5cc42b5e441af8f34a122624d136cfcb772c65e (patch)
treeabbced77929e33dccdfce878354d9ba379c24bb1 /tests/misc/php.html
parent0efd44b8e22a43a9df167a2c88aa92d3723dabae (diff)
downloadmarkdown-a5cc42b5e441af8f34a122624d136cfcb772c65e.tar.gz
markdown-a5cc42b5e441af8f34a122624d136cfcb772c65e.tar.bz2
markdown-a5cc42b5e441af8f34a122624d136cfcb772c65e.zip
Fixed Ticket 13. Raw block-level html are no longer being inserted into <p> tags.
Also edited numerious tests that were expecting wrong output - they now expect correct output. Note that a few **still fail** because the output before moving to ELementTree wasn't correct either. So I set the expected output to what I think it should be so we don't forget about it later. I should also note that the 'safe-mode' tests are failing. However, I believe the current expected output is correct as it is valid html. Interestingly, these tests passed prior to this fix. We'll need to special case safe-mode here.
Diffstat (limited to 'tests/misc/php.html')
-rw-r--r--tests/misc/php.html13
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/misc/php.html b/tests/misc/php.html
index 66bc8d1..6d91404 100644
--- a/tests/misc/php.html
+++ b/tests/misc/php.html
@@ -1,9 +1,12 @@
-<p><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
-<b>This should have a p tag</b>
+<p><b>This should have a p tag</b></p>
+
+<!--This is a comment -->
+
+<div>This shouldn't</div>
+
+<?php echo "block_level";?>
-<!--This is a comment --></p>
-<p><div>This shouldn't</div></p>
-<p><?php echo "block_level";?></p>
<p> &lt;?php echo "not_block_level";?&gt;</p>