aboutsummaryrefslogtreecommitdiffstats
path: root/tests/markdown-test/inline-html-simple.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/markdown-test/inline-html-simple.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/markdown-test/inline-html-simple.html')
-rw-r--r--tests/markdown-test/inline-html-simple.html55
1 files changed, 34 insertions, 21 deletions
diff --git a/tests/markdown-test/inline-html-simple.html b/tests/markdown-test/inline-html-simple.html
index efb50dc..df98803 100644
--- a/tests/markdown-test/inline-html-simple.html
+++ b/tests/markdown-test/inline-html-simple.html
@@ -1,53 +1,66 @@
<p>Here's a simple block:</p>
-<p><div>
+<div>
foo
-</div></p>
+</div>
+
<p>This should be a code block, though:</p>
<pre>
-<code>&lt;div&gt;
+ <code>&lt;div&gt;
foo
&lt;/div&gt;
</code>
</pre>
<p>As should this:</p>
<pre>
-<code>&lt;div&gt;foo&lt;/div&gt;
+ <code>&lt;div&gt;foo&lt;/div&gt;
</code>
</pre>
<p>Now, nested:</p>
-<p><div>
+<div>
<div>
<div>
foo
</div>
</div>
-</div></p>
+</div>
+
<p>This should just be an HTML comment:</p>
-<p><!-- Comment --></p>
+<!-- Comment -->
+
<p>Multiline:</p>
-<p><!--
+<!--
Blah
Blah
---></p>
+-->
+
<p>Code block:</p>
<pre>
-<code>&lt;!-- Comment --&gt;
+ <code>&lt;!-- Comment --&gt;
</code>
</pre>
<p>Just plain comment, with trailing spaces on the line:</p>
-<p><!-- foo --></p>
+<!-- foo -->
+
<p>Code:</p>
<pre>
-<code>&lt;hr /&gt;
+ <code>&lt;hr /&gt;
</code>
</pre>
<p>Hr's:</p>
-<p><hr></p>
-<p><hr/></p>
-<p><hr /></p>
-<p><hr></p>
-<p><hr/></p>
-<p><hr /></p>
-<p><hr class="foo" id="bar" /></p>
-<p><hr class="foo" id="bar"/></p>
-<p><hr class="foo" id="bar" ></p> \ No newline at end of file
+<hr>
+
+<hr/>
+
+<hr />
+
+<hr>
+
+<hr/>
+
+<hr />
+
+<hr class="foo" id="bar" />
+
+<hr class="foo" id="bar"/>
+
+<hr class="foo" id="bar" > \ No newline at end of file