Attachment not found with [[ ]] and space in path

tl;dr:

When referencing an attachment, the following format does not work
![[attachments/Hemlock%20Underleaf/Untitled.jpg]]
But this format does
![](attachments/Hemlock%20Underleaf/Untitled.jpg)
The issue is a combination of the ![[ ]] reference (as opposed to ![]()) and the space in the pathname

Steps to reproduce

When referencing an attachment, the following reference does not work
![[attachments/Hemlock%20Underleaf/Untitled.jpg]]

Expected result

Image displays

Actual result

“attachments/Hemlock%20Underleaf/Untitled.jpg” is not created yet. Click to create.

Environment

  • Operating system: macOS Monterey v12.1
  • Debug info:
    SYSTEM INFO:
    Obsidian version: v0.13.14
    Installer version: v0.12.19
    Login status: not logged in
    Insider build toggle: off
    Live preview: on
    Legacy editor: off
    Base theme: dark
    Community theme: none
    Snippets enabled: 0
    Safe mode: off
    Plugins installed: 2
    Plugins enabled: 0

RECOMMENDATIONS:
none


Additional information

Solution

The following reference format works
![](attachments/Hemlock%20Underleaf/Untitled.jpg)

This is not a bug. You should not use %20 with wikilinks.