Skip to content

Smarty extension causes generation of invalid HTML syntax #1131

Closed
@andersk

Description

@andersk

This works as expected:

$ echo '![x"x](x)' | python3 -m markdown -x smarty
<p><img alt="x&quot;x" src="x" /></p>

but this unexpectedly generates invalid HTML syntax:

$ echo '![x\"x](x)' | python3 -m markdown -x smarty
<p><img alt="x"x" src="x" /></p>

I would expect the second output to be the same as the first. Backslash should suppress special interpretation by Markdown; it should not also induce special interpretation by HTML.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug report.confirmedConfirmed bug report or approved feature request.extensionRelated to one or more of the included extensions.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions