Use case or problem
I use comments (%% [[link]] %%) to keep internal notes and links to private files within my notes. I expect this content to be completely hidden from the public.
However, the interactive graph in Obsidian Publish still detects and displays links found inside these comment blocks. This creates a privacy concern because it reveals the titles of private notes that are not intended to be part of the public site, making them visible to anyone viewing the graph.
Proposed solution
The graph view in Obsidian Publish should be updated to respect comment syntax. Any links found inside %% … %% (Obsidian comments) or (HTML comments) should be ignored by the graph parser and should not create connections or nodes on the interactive graph.
Current workaround (optional)
The only current workaround is to manually delete these links before publishing or to avoid using links inside comments entirely, which breaks the internal workflow in my local vault.
Related feature requests (optional)
There have been similar discussions regarding how the local graph handles comments, but this is specifically critical for the Publish service due to privacy reasons.