Markdown bug??

Joshua E Cook markdown-discuss at blinkinglights.org
Fri Aug 20 18:20:17 EDT 2004


> I can't reproduce this using the current version.
>
> What version of Markdown are you using? How are you invoking it?
> (MT, command-line, etc.)
>
> -J.G.

Put the following text through the Markdown Web Dingus on your site and 
examine the HTML output.  I get an extraneous <p> around "Trailing 
paragraph."  The extra <p> also surrounds the close tags of </li></ul> 
which were opened before "List header."  That is, the outer list is not 
closed properly.  You may also refer to my second message in this 
thread.  As an aside, why does Markdown put a <p> around comments?

<!-- BEGIN Markdown input -->

### Headline

* _List header_

     * List item 1

     * List item 2

     * List item with some extra text.

         Extra text.  Extra text.

     * List item n

     Trailing paragraph

<!-- END Markdown input -->

Joshua E Cook

P.S.  This is a copy of the output I get from the Dingus:

<p><!-- BEGIN Markdown input --></p>

<h3>Headline</h3>

<ul>
<li><p><em>List header</em></p>

<ul>
<li><p>List item 1</p></li>
<li><p>List item 2</p></li>
<li><p>List item with some extra text.</p>

<p>Extra text.  Extra text.</p></li>
<li><p>List item n</p></li>
</ul>

<p><p>Trailing paragraph</p></li>
</ul></p>

<p><!-- END Markdown input --></p>



More information about the Markdown-discuss mailing list