Image links containing spaces when represented in markdown format should be escaped

Steps to reproduce

Open a vault. Open settings. Under “Files and Links” turn off ‘Use Wikilinks’ so a markdown style link is created. Open a note, and drag in an image file containing spaces. Examine the underlying file.

Did you follow the troubleshooting guide? [Y/N]

Y

Expected result

The markdown link should be represented using the form:

[](<Path To File With Spaces>)

The angle brackets are used to escape a filename containing spaces by all markdown implementations respecting the common mark standard (can provide a link).

Actual result

The markdown will be represented using the form:

[](Path To File With Spaces)

Environment


SYSTEM INFO:
Obsidian version: v1.10.3
Installer version: v1.10.3
Operating system: Windows 10 Pro 10.0.19045
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none

Additional information

By default, the spaces are encoded as%20 in markdown links when you drag a file into a note. Is that not happening for you?

You can manually type and use <>, but Obsidian doesn’t add those in itself.

Encoding them this way in this particular context doesn’t seem to be compliant with how Markdown is being used elsewhere. See example 485 in the latest commonmark spec.

URL encoded links (opposed to the bracketed ones) have been the type Obsidian creates from when I started using Obsidian.

Looks like there’s a FR here for an option:


I know the auto-updating of bracketed links was broken for a while:

^The second topic here looks like it may have been implemented/fixed (for the “shortest path when possible” setting, at least).

source mode | reading view

CleanShot 2025-11-25 at 17.04.30

When I drag and drop I get the version with %20, which is valid, not this.

For the rest, follow the link provided above.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.