Backlinks within a callout, followed by another callout, ruin notes

Steps to reproduce

  1. Create a note with a backlink to another note inside a callout
  2. Follow the first callout with a second callout
  3. The other note that is backlinked, either alter its name or create a duplicate with the same name in another folder
  4. Return to the first note with the backlink to observe the carnage!

Did you follow the troubleshooting guide? Y

Yes, I did it in the sandbox and in a completely fresh vault with no settings altered or plugins, it occurred in both.

Expected result

The backlink in the first note to update as expected to the altered file name

Actual result

One of two things occur, and I can’t quite pinpoint it but I think it may be to do with the length of the file name of the backlinked note…

  1. It doesn’t update the backlink but instead inserts a new backlink at the top of the note which is mangled up in some partially constructed callout
  2. It duplicates the entire note within itself and includes (1)

(2) is the bad one… this messed up several notes within my main vault before I realised this was happening and I’m glad I caught it that early because this bug was basically in the process of nuking my entire vault


Obsidian version: v1.6.3
Installer version: v1.5.3
Operating system: Windows 10 Home 10.0.22631
Login status: not logged in
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on


Additional information

Only that it’s definitely related to callouts and that the length of the name of the note seems to impact the outcome between (1) and (2)

That was a quick video of I made showing the note being duplicated within itself.

See also: