Closed
Description
If <center>
has tags nested underneath it, the <center>
tag is surrounded by <p>
tags, breaking the HTML.
from markdown import markdown
text = """# My Header
<center>
Test
</center>
<center>
<div>Something</div>
</center>
<div>
Test div
</div>
<div>
<p>Some paragraph</p>
</div>
<div>
<article>Some paragraph</article>
</div>
Something else
"""
print(markdown(text))
Results in:

It seems like
works correctly, so not 100% why the difference.