readthedocs/commonmark.py

Issue with HTML-looking tags

md975 opened this issue · 0 comments

md975 commented

Hi,

I'm trying to process a text coming from StackExchange in Python. It seems to be ok, except that HTML-looking tags are gone when I run
html=commonmark.commonmark(s)
e.g.
s=<p><em>This is an <example></em>. <example2> <a href="[LINK]">test</a></p>
becomes
This is an . test

How can I fix this and have:
This is an <example>. <example2> test

Thanks!