A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Python-Markdown/markdown/issues/1045 below:

Inline elements getting parsed as text when doubly nested · Issue #1045 · Python-Markdown/markdown · GitHub

import markdown
md = markdown.Markdown(extensions=["markdown.extensions.md_in_html"])
test = """
<div markdown="1">
<div>
<img src="" />
<code>Test</code>
<p>Test 2</p>
</div>
</div>
"""
md.convert(test)

Which gives:
'<div>\n<div>\n&lt;img src="" /&gt;\n&lt;code&gt;Test&lt;/code&gt;\n<p>Test 2</p>\n</div>\n</div>'

When I'd expect to get '<div>\n<div>\n<img src="" />\n<code>Test</code>\n<p>Test 2</p>\n</div>\n</div>'.

Happens with 3.3, 3.3.1.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4