waylan/Python-Markdown — Issue #75: Doesn't properly handle inline HTML
Author: mitya57
Created: 2012-01-26 10:02:50+00:00
State: open

This bug report was initially filed [here](http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=646552). I can reproduce this with 2.1.1.

Please have a look at this strange behavior:

>>> import markdown
>>> markdown.markdown('

.\n\n...\n\n.

')
u'

.\n\n...\n\n.

'
>>> markdown.markdown('

.\n\n.a.\n\n.

')
u'

.\n\n.a.\n\n.

'
>>> markdown.markdown('

.\n\n.p.\n\n.

')
u'

.\n\n.p.\n\n

.

'

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).