Closed
Labels
bugBug report.extensionRelated to one or more of the included extensions.needs-confirmationThe alleged behavior needs to be confirmed.
Description
I wrote something like this:
<div class="outer" markdown="1">
Code: `<label><input/></label>`
</div>
With stable Markdown 3.3.3 I get the expected result:
>>> print(markdown.markdown('<div class="outer" markdown="1">\n\nCode: `<label><input/></label>`\n\n</div>', extensions=["extra"]))
<div class="outer">
<p>Code: <code><label><input/></label></code></p>
</div>
But I installed latest git version to solve #1066 and I got mysterious result:
>>> print(markdown.markdown('<div class="outer" markdown="1">\n\nCode: `<label><input/></label>`\n\n</div>', extensions=["extra"]))
<div class="outer">
<p>Code: <code><label><input/></label></code></p>
</div>
label is escaped properly, but input is not escaped, it's strange
Metadata
Metadata
Assignees
Labels
bugBug report.extensionRelated to one or more of the included extensions.needs-confirmationThe alleged behavior needs to be confirmed.
Activity
[-]<input> is not escaped inside inline code[/-][+]<input> is not escaped inside inline code inside <div>[/+]waylan commentedon Dec 8, 2020
I suspect this is related to #1074, possibly even a duplicate.
Update changelog in relation to fixing Python-Markdown#1075
Adjust `md_in_html` "markdown" blocks to process content consistently (…