Image resize conflict with block reference autocompletion

When you trigger the block reference autocompletion you see the images resize values instead of the image names.

Steps to reproduce

Use this markdown:

My block reference [[^]]

My super image ![[link-to-an-image]] in obsidian

My second **resized** image ![[link-to-an-image|600]] in obsidian

Expected result

When you trigger the block reference autocompletion you expect to see the image name.

Actual result

You see the image size.

Environment

  • Operating system: Mac OSX
  • Obsidian version: 0.9.17

Additional information

Screenshot:

I can reproduce this.

To clarify, the exact bug is that the block reference autocompletion menu renders [[some-image.png|1200]] as 1200 instead of some-image.png.

In other words, when you try to link to a block containing a resized image, the preview of that block treats the resizing parameter as an alternative title for the image.

1 Like

Will fix in 0.9.18

3 Likes