Some elements turning into None in html output with md_in_html · Issue #1049 · Python-Markdown/markdown (original) (raw)

import markdown md = markdown.Markdown(extensions=["markdown.extensions.md_in_html"]) test = """

time amplitude
0 0 0
""" print(md.convert(test))

Which gives me -

None
None time amplitude
0 0 0

Rather than

time amplitude
0 0 0

Which is what I'm expecting - note the extra None before the <tr> in <thead> and in the first header.