A "%%", "==" or footnote inside a wikilink is read as that syntax in the editor, but the link targets the whole text

Steps to reproduce

Paste this into a note and look at it in Source mode and Live Preview, then in Reading view:

[[Note%%draft]]

This line is plain text.

Then try the same with each of these on the first line:

[[Note==v2==]]
[[Note^[x]]
[[Note[^1]x]]

Did you follow the troubleshooting guide?

Yes (reproduced in a sandbox vault, no community plugins).

Expected result

A wikilink’s text is a file name (and maybe a heading or block), so every view reads it the same way: one link to the whole text between [[ and ]], with nothing inside it styled as other syntax, and the line after it as plain text.

Actual result

Reading view and the metadata cache read one link to the whole text. The editor (Source mode and Live Preview) reads the syntax inside it:

First line Source mode / Live Preview Reading view app.metadataCache.getCache(path).links
[[Note%%draft]] %%draft is styled as a comment inside the link, and the comment runs on: This line is plain text. is styled as a comment too link to Note%%draft, then the plain line Note%%draft
[[Note==v2==]] two of the = are styled as highlight marks inside the link link to Note==v2== Note==v2==
[[Note^[x]] ^[x is styled as an inline footnote inside the link link to Note^[x Note^[x
[[Note[^1]x]] [^1] is styled as a footnote reference, the link ends there, and x]] is plain text link to Note[^1]x Note[^1]x

Environment

SYSTEM INFO:
	Obsidian version: 1.15.0
	Installer version: 1.14.4
	Operating system: Windows 11 Pro 10.0.26300
	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

Sandbox vault, no community plugins, default theme and settings.

Additional information

In Live Preview, with the cursor on another line, the first three render as one link, so what still shows there is the comment running on over the next line; the last renders a link to Note followed by the text [^1]x]]. Source mode shows all four.

Reading a wikilink’s text up to its ]] as plain text in the editor, as Reading view and the metadata cache already do, would make the views agree. The comment case is the most visible one, because in the editor it styles the rest of the note as a comment, up to the next %%.

Source mode:

Live Preview:

Reading view: