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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4