Heading link autocomplete copies links in the heading into the link text, breaking the link

Steps to reproduce

  1. Settings → Files and links: “Use [[Wikilinks]]” off.
  2. Create a note Target, and in another note add ## [[Target]] wikilink heading.
  3. Below the heading, type [[# and pick it.

Did you follow the troubleshooting guide?

Y. Reproduced in the sandbox vault.

Expected result

The link text is the heading’s displayed text, Target wikilink heading, and the link reaches the heading.

Actual result

Autocomplete writes [[[Target]] wikilink heading](#Target%20wikilink%20heading). This renders as a wikilink to a note named [Target, which does not exist; clicking it creates [Target.md at the vault root. A heading containing a Markdown link, such as ## [Link](``https://example.com``) heading, gives [[Link](``https://example.com``) heading](#…), whose text renders as a separate external link.

Environment

SYSTEM INFO:
Obsidian version: 1.14.5
Installer version: 1.12.7
Operating system: #1 SMP PREEMPT_DYNAMIC Tue Oct 6 19:13:07 UTC 2026 6.18.54.1-microsoft-standard-WSL2
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