Skip to content

3.11 doesn't accept tag properties containing html strings anymore #1647

Description

@FredZinelli

Hello,

I just got some very weird behaviors in a mkdocs project using markdown 3.11: it seems the new version doesn't parse/render correctly tag properties containing html code anymore.

I could confirm the following happens when the md is converted to html in Markdown.convert. Here is a minimal POC :

Markdown content:

<span data-tip-txt="<kbd>Ctrl</kbd>">Anything</span>

Result:

Image

Related html:

<p>&lt;span data-tip-txt="<kbd>Ctrl</kbd>"&gt;Anything</p>

Expected html:

<p><span data-tip-txt="<kbd>Ctrl</kbd>">Anything</span></p>

Some observations:

  • This doesn't happen with previous versions of markdown (I tested 3.9 and 3.10 successfully).
  • This happens with the default configuration of mkdocs (no theme, no plugins, no md extensions at all)

Regards,
Fred

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.coreRelated to the core parser code.someday-maybeApproved low priority request.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions