Comments double percent %% in link/image title incorrectly start commenting area

Steps to reproduce

Add this text to a page:

[link title %%](https://forum.obsidian.md/c/bug-reports/)

More text below

Variant: ![image title %%](page/to/image)

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

Y

Expected result

The text more below should not appear commented, as the link/image title should have no effect on the rest of the document.

Actual result

The %% is parsed inside the title, causing the rest of the document below to appear commented (grayed out) until the next closing %%.

Environment

SYSTEM INFO:
Obsidian version: v1.8.10
Installer version: v1.8.4
Operating system: #148-Ubuntu SMP Fri Mar 14 19:05:48 UTC 2025 5.15.0-138-generic
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: off
Plugins installed: 0
Plugins enabled: 0

RECOMMENDATIONS:
none


Additional information

Similarly, %% in image/link title can also unexpectedly end a comment area.

Workaround:
a. rename the file
b. add backslash before the first percent to escape it: \%%
c. change the title to avoid % completely

At least adding and using %% doesn’t yield consistent results. In tables and mathblocks %% doesn’t cause the issue. In headings, internal links, quotes, task lists, numbered lists, bulleted lists, callouts and footnotes there is the issue (in live preview). The affected block breaks tables (see my examples).

Normal text

> [!NOTE] Title %%
> Contents

text
Text [^1]. Text [^2]

[^1]: %%

[^2]: text in footnote
Normal text

> my text %%

text
Normal text
[[my text %%]]
text

|     |     |
| --- | --- |
|     |     |
[link title %%]()
text

|     |     |
| --- | --- |
|     |     |

text
SYSTEM INFO:
	Obsidian version: v1.8.10
	Installer version: v1.8.9
	Operating system: Darwin Kernel Version 24.2.0: Fri Dec  6 18:51:28 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T8112 24.2.0
	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: off
	Plugins installed: 0
	Plugins enabled: 0

RECOMMENDATIONS:
	none