Link mismatch after extracting text

Steps to reproduce

  • Create Heading with any text
# Lorem ipsum dolor sit amet
Consectetur adipiscing elit. Pellentesque convallis porta consectetur. Nulla facilisi. Cras et ipsum sit amet lorem elementum posuere. 
  • Use Extract this heading... or Extract current selection... on created heading.
  • As target choose file that has other extension then .md

Did you follow the troubleshooting guide? [Y/N]

Y

Expected result

  • Preferably don’t allow files other then .md as target of extraction.
    or
  • Copy selection to selected target regardless file extension, to avoid data loss.

Actual result

  • Extracted heading (or selection) is removed from source file and isn’t copied anywhere.

Environment

SYSTEM INFO:
	Obsidian version: v1.8.4
	Installer version: v1.8.4
	Operating system: #1 SMP PREEMPT_DYNAMIC Wed Dec 11 22:24:04 UTC 2024 6.6.65-1-MANJARO
	Login status: not logged in
	Language: en
	Insider build toggle: off
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none

Additional information

This seams a little bit more complicated then I thought.

  • In my vault I have source file with proper extension let say hello_world.c
  • I also have a note hello_world.c.md about said file.
  • Selection is copied correctly to hello_world.c.md but link inserted instead exported text points to hello_world.c

I am not sure I understand. Please post a screen recording of what you are doing in he sandbox vault.