HTML reader: treat Plain as Para when needed.

For example, in

    Just a few glitches remaining.
    <ul><li> In this situation, one loses the list.
    </ul>
    And in this, the preformatting.
   <pre>Preformatted text not starting with its own blank line.
   </pre>

Thansk to Dirk Laurie for noticing the issue.
This commit is contained in:
John MacFarlane
2011-07-16 09:42:16 -07:00
parent 934867f858
commit dd59cd2341
3 changed files with 14 additions and 78 deletions
-34
View File
@@ -298,40 +298,6 @@ These should not be escaped: \$ \\ \> \[ \{
<dd>Low-voiced stringed instrument.</dd>
</dl>
<hr />
<h1>HTML Blocks</h1>
<p>Simple block on one line:</p>
foo<p>And nested without indentation:</p>
foobar<p>Interpreted markdown in a table:</p>
This is <em>emphasized</em>. And this is <strong>strong</strong><p>Here's a simple block:</p>
foo<p>This should be a code block, though:</p>
<pre><code>&lt;div>
foo
&lt;/div>
</code></pre>
<p>As should this:</p>
<pre><code>&lt;div>foo&lt;/div>
</code></pre>
<p>Now, nested:</p>
foo<p>This should just be an HTML comment:</p>
<p>Multiline:</p>
<p>Code block:</p>
<pre><code>&lt;!-- Comment -->
</code></pre>
<p>Just plain comment, with trailing spaces on the line:</p>
<p>Code:</p>
<pre><code>&lt;hr />
</code></pre>
<p>Hr's:</p>
<hr />
<hr />
<hr />
<hr />
<hr />
<hr />
<hr />
<hr />
<hr />
<hr />
<h1>Inline Markup</h1>
<p>This is <em>emphasized</em>, and so <em>is this</em>.</p>
<p>This is <strong>strong</strong>, and so <strong>is this</strong>.</p>