[Python-modules-team] Bug#646552: python-markdown: do not properly handle inline html

Bernd Zeimetz bernd at bzed.de
Sun Jan 22 18:28:56 UTC 2012


Hi,

> Please have a look to this strange behavior:
> 
> --------8<--------
>>>> import markdown
>>>> markdown.markdown('<p>.\n\n...\n\n.</p>')
> u'<p>.\n\n...\n\n.</p>'
>>>> markdown.markdown('<p>.\n\n.a.\n\n.</p>')
> u'<p>.\n\n.a.\n\n.</p>'
>>>> markdown.markdown('<p>.\n\n.p.\n\n.</p>')
> u'<p>.\n\n.p.\n\n<p>.</p></p>'
> -------->8--------
> 
> After a little investigation it seems that the problem comes from
> markdown.preprocessors.HtmlBlockPreprocessor. I don't know why but it seems it
> considers the 'p' as a tag (which it obviously is not).

could you give the version from unstable (just passed NEW) a try? On the first
look I'm not able to reproduce it there.

Thanks,

Bernd

-- 
 Bernd Zeimetz                            Debian GNU/Linux Developer
 http://bzed.de                                http://www.debian.org
 GPG Fingerprint: ECA1 E3F2 8E11 2432 D485  DD95 EB36 171A 6FF9 435F





More information about the Python-modules-team mailing list