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. ).
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.)
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.).In the image handling in
internal/convert, URL-decode thesrcbefore resolving/checking the local path, leaving remoteri:urlvalues as-is. First confirm goldmark's current behavior forDestination(whether it already decodes). (From the oldtodo.md, originally observed with marko.)