(still in 0.9.6) Moving images doesn’t update markdown image links correctly

(This is a recreated bug report, since the problem still persists.)

Steps to reproduce

Have a picture called example.jpg in the root of the vault.

Have a note in the root of the vault - test.md with the following content:

![example.jpg](example.jpg)

Create a folder called foo. Move the picture from the root to foo and let obsidian update the links.

Expected result

The content of test.md is as follows:

![example.jpg](foo/example.jpg)

Actual result

The content of test.md is as follows:

![foo/example.jpg](example.jpg)

Environment

  • Operating system: mac OS 10.15.6 Catalina
  • Obsidian version: 0.9.6

Additional information

1Writer for iOS tends to create images links like this and the text in the square brackets is also used by some markdown software as alt text.

File->New Link Format is set to Relative Path.

Are you using standard markdown format or wikilinks format in the editor settings?

Ok I manged to repro your bug. It’s a corner case.
If you use ![anytext_except_filename.jpg](filename.jpg)
It will work

1 Like

If you use ![anytext_except_filename.jpg](filename.jpg) It will work

Exactly. Glad you could reproduce it!

EDIT: I am using standard markdown links.

will be fixed in 0.9.8

2 Likes