Obsidian Publish: Graph shows unpublished note linked in comment

There is a bug with this syntax: %% [[Wikilink]] Some comment. %% The [[wikilink]] note is not published.

  • Correct behavior: The entire comment is not displayed in the note when published to Obsidian Publish.
  • Unexpected behavior: The [[wikilink]] is displayed even though it is not published and the link is in a comment.

Comments should be ignored in both the main body and in the graph. Wikilinks in comments should be ignored in both as well.

I do not consider this a bug. Please, Open a feature request.