forked from Python-Markdown/markdown
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Ticket 13. Raw block-level html are no longer being inserted in…
…to <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.
- Loading branch information
Waylan Limberg
committed
Aug 22, 2008
1 parent
0efd44b
commit a5cc42b
Showing
17 changed files
with
141 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
<p>Simple block on one line:</p> | ||
<p><div>foo</div></p> | ||
<div>foo</div> | ||
|
||
<p>And nested without indentation:</p> | ||
<p><div> | ||
<div> | ||
<div> | ||
<div> | ||
foo | ||
</div> | ||
</div> | ||
<div>bar</div> | ||
</div></p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
<p>Paragraph one.</p> | ||
<p><!-- This is a simple comment --></p> | ||
<p><!-- | ||
<!-- This is a simple comment --> | ||
|
||
<!-- | ||
This is another comment. | ||
--></p> | ||
--> | ||
|
||
<p>Paragraph two.</p> | ||
<p><!-- one comment block -- -- with two comments --></p> | ||
<!-- one comment block -- -- with two comments --> | ||
|
||
<p>The end.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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><div> | ||
<code><div> | ||
foo | ||
</div> | ||
</code> | ||
</pre> | ||
<p>As should this:</p> | ||
<pre> | ||
<code><div>foo</div> | ||
<code><div>foo</div> | ||
</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><!-- Comment --> | ||
<code><!-- Comment --> | ||
</code> | ||
</pre> | ||
<p>Just plain comment, with trailing spaces on the line:</p> | ||
<p><!-- foo --></p> | ||
<!-- foo --> | ||
|
||
<p>Code:</p> | ||
<pre> | ||
<code><hr /> | ||
<code><hr /> | ||
</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> | ||
<hr> | ||
|
||
<hr/> | ||
|
||
<hr /> | ||
|
||
<hr> | ||
|
||
<hr/> | ||
|
||
<hr /> | ||
|
||
<hr class="foo" id="bar" /> | ||
|
||
<hr class="foo" id="bar"/> | ||
|
||
<hr class="foo" id="bar" > |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<p>foo</p> | ||
<p><div> | ||
<div> | ||
bar | ||
</div></p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<p>X<0</p> | ||
<p>X>0</p> | ||
<p><!-- A comment --></p> | ||
<p><div>as if</div></p> | ||
<!-- A comment --> | ||
|
||
<div>as if</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<p><div id="sidebar"></p> | ||
<div id="sidebar"> | ||
|
||
<p> | ||
<em>foo</em> | ||
<em>foo</em> | ||
</p> | ||
<p></div></p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<p>a</p> | ||
<p><pre> | ||
<pre> | ||
#!/usr/bin/python | ||
hello</pre></p> | ||
hello</pre> | ||
|
||
<p>a</p> | ||
<p><pre> | ||
<pre> | ||
!/usr/bin/python | ||
hello</pre></p> | ||
hello</pre> | ||
|
||
<p>a</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
<p><p>Some text</p><div>some more text</div> | ||
<p>Some text</p><div>some more text</div> | ||
|
||
and a bit more | ||
|
||
</p> | ||
<p>and a bit more</p> |
Oops, something went wrong.