Skip to content

URL-decode local image src before the filesystem lookup #20

Description

@willkg

A local image whose filename contains a space or other special character can be looked up literally (percent-encoded) and reported as IMAGE BROKEN, because the markdown image destination may be URL-encoded (e.g. ![alt](my%20file.png)).

In the image handling in internal/convert, URL-decode the src before resolving/checking the local path, leaving remote ri:url values as-is. First confirm goldmark's current behavior for Destination (whether it already decodes). (From the old todo.md, originally observed with marko.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions