Skip to content

Regression in unescaping backslash in attribute #1358

Description

@oprypin

Regression in 3.4 - c0f6e5a is the first bad commit

Reproduction code:

import markdown

s = r'''
<img src="..\..\foo.png">
'''
print(repr(markdown.markdown(s)))

Output before vs after:

'<p><img src="..\\..\\foo.png"></p>'
'<p><img src="..\\\x0246\x03.\\foo.png"></p>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug report.confirmedConfirmed bug report or approved feature request.coreRelated to the core parser code.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions