tomd
tomd copied to clipboard
tag parse
Hi, I find the case that
When the tag is <img></img>:
tomd.convert('''<p><img src="https://github.com" class="dsad"></img></p>''')
the parsed result is \n\n, which is what I expect,
But, when the tag is <img />:
tomd.convert('''<p><img src="https://github.com" class="dsad"/></p>''')
the result is: \n<img src=\"https://github.com\" class=\"dsad\"/>\n, so it seems that the self contained tag cannot be parsed.
Can we repair it?
I hava same problem too!