Wikilinks get lost in live-view if text before is hightlighted and replaced

Steps to reproduce

"highlight and delete this" [[This link will survive]]

"highlight and replace this" [[This link will survive]]

"foo"
"highlight and replace this together with 'foo'" [[This link will die]]

Expected and actual result

All links should survive, but the last one dies, i.e. the wiki-brackets get lost.
Only happens in live-view, not in source-mode.
Only happens if there the replaced text includes some text in previous line(s).

Environment

  • Operating system: linux
  • Debug info: none in console

Additional information

Hope it’s clear from the example above. Otherwise I can provide screen-video.

I don’t understand. download and reinstall obsidian. post a screen recording of this happening in the sandbox vault.