matthewwithanm / python-markdownify

Convert HTML to Markdown
MIT License
1.04k stars 135 forks source link

Tags within `pre` blocks cause nōn-`pre` rendering of their contents #106

Closed mirabilos closed 8 months ago

mirabilos commented 8 months ago

Related to #103 but different:

>>> from markdownify.markdownify import markdownify
>>> print(markdownify('<pre>foo*bar</pre>'))

foo*bar


>>> print(markdownify('<pre>foo<span class="asterix">*</span>bar</pre>'))

foo*bar

I expect them to convert identical.

mirabilos commented 8 months ago

Oh, nice, fixed by #104, thanks!