Let's consider this simple script:
import markdown
md = markdown.Markdown(output_format='html5')
html = md.convert("<div>Hello World!</div>")
print(html)
this correctly outputs:
<div>Hello World!</div>
However if the tag is body or html the output is:
<p><body>Hello World!</body></p>
which seems wrong to me.
Am I missing something or have I found a bug?
Let's consider this simple script:
this correctly outputs:
<div>Hello World!</div>However if the tag is
bodyorhtmlthe output is:<p><body>Hello World!</body></p>which seems wrong to me.
Am I missing something or have I found a bug?