From: Rob v. d. L. <ro...@gm...> - 2008-07-20 02:27:42
|
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. |