Steps to reproduce
- Create a new note in Obsidian.
- Paste the following content into the note:
# Check Out this Obsidian Bug
[Link](https://www.example.com/new/link/broken) %%
# H1
## H2
By [A1](https://www.example.com/idiot/1) [A2](https://www.example.com/idiot/2) and [A3](https://www.example.com/idiot/3)
---
WASHINGTON—GPT Generated Brain Rot
And fluff
Copyright ©2025 Front Company, Inc. All Rights Reserved.
%%
WTF?
- Try to create a link to the same document, and you will see the quick link screen displays the headers inside the comment.
- See the third image below for a demo.
Did you follow the troubleshooting guide? [Y/N]
Y
Expected result
The software shouldn’t suggest that you link to headers inside a comment.
Actual result
You are suggested to create links inside a comment.
Environment
OS: MacOS
Obsidian Version: 1.7.7
Additional information
This behavior seems related to how multiline comments with headers are processed. Screenshots are attached to illustrate the issue.
I posted a related, but different bug here.
Hybrid Mode
Reading Mode
Suggested Link to Comments