trentm / python-markdown2

markdown2: A fast and complete implementation of Markdown in Python
Other
2.64k stars 431 forks source link

Fix `html`, `head` and `body` tags being wrapped in `<p>` tags (#575) #576

Closed Crozzers closed 4 months ago

Crozzers commented 4 months ago

This PR fixes #575 by adding the aforementioned tags to the block tags regex. This ensures that those blocks get processed and hashed, which prevents the paragraphs system from wrapping them in unnecessary tags.

nicholasserra commented 4 months ago

LGTM thanks!