Hmm. Actually, perl markdown and most other implementations do more
or less the same thing, but this is not much of an excuse, considering
that PHP Markdown does the right thing here. Luckily, it seems like
there is an easy fix in this case.
http://gitorious.org/projects/python-markdown/repos/mainline/commits/caef3e9
- yuri
On Sat, Jul 19, 2008 at 7:27 PM, Rob van der Linde <ro...@gm...> wrote:
> Hi, I have found this bug with lists in python-markdown and don't know
> where else to report this. I've actually known about it for a while, but
> only just managed to put together a test case. The bug exists in 1.6 and
> 1.7 as far as I know.
>
> Ok, so here's my test case (take out the --snip-- off course):
>
> -- snip --
> Title
> -----
>
> 1. dgfg
> 2. dg
> 3. dsfg
>
> Something in between and it's ok...
>
> * ddfgd
> * ddgdfg
> * dfgdfg
>
> Something else in between...
>
> 1. dg
> 2. dfgdfg
> 3. dgdg
>
> * dgdg
> * dgdfg
> * dgfdg
>
> The above will produce the error
> -- snip --
>
> Now this will produce the following HTML (I cleaned it up only for readability):
>
> <h2>Title</h2>
>
> <ol>
> <li>dgfg</li>
> <li>dg</li>
> <li>dsfg</li>
> </ol>
>
> <p>Something in between and it's ok...</p>
>
> <ul>
> <li>ddfgd</li>
> <li>ddgdfg</li>
> <li>dfgdfg</li>
> </ul>
>
> <p>Something else in between...</p>
>
> <ol>
> <li><p>dg</p></li>
> <li><p>dfgdfg</p></li>
> <li><p>dgdg</p></li>
> <li><p>dgdg</p></li>
> <li><p>dgdfg</p></li>
> <li><p>dgfdg</p></li>
> </ol>
>
> <p>The above will produce the error</p>
>
> Notice how the bulleted and numbered lists will merge together in the
> last example, as well as it put a paragraph inside each list item. This
> does not happen if I have a divider paragraph in between each list as
> the first two lists show.
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Python-markdown-discuss mailing list
> Pyt...@li...
> https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss
>
>
--
http://sputnik.freewisdom.org/
|