Skip to content

<input> is not escaped inside inline code inside <div> #1075

Description

@andreymal

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>&lt;label&gt;&lt;input/&gt;&lt;/label&gt;</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>&lt;label&gt;<input/>&lt;/label&gt;</code></p>
</div>

label is escaped properly, but input is not escaped, it's strange

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug report.extensionRelated to one or more of the included extensions.needs-confirmationThe alleged behavior needs to be confirmed.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions