Additional paragraph when using Markdown in raw HTML 路 Issue #595 路 Python-Markdown/markdown (original) (raw)

First thank you for this implementation! 馃憤

I provide a minimal working example of some unexpected behavior I encountered:

import markdown md = markdown.Markdown(extensions=['extra']) html = md.convert("

Hello World!

") print(html)

The output was

Hello World!

But I expected

Hello World!

My workaround is to use two line breaks (edit)

html = md.convert("

\n\n

Hello World!

")

does not include the additional paragraph, but the Markdown is not replaced.