+1 for this. Licat asked me to add my usecase:
I am an author, so I’ll often want to write a note-to-self inside of a piece of prose. I want to see it on edit view, not on preview (preview is currently how I “export” to a publishable form for other people to see my prose), and have the links actually work, but not on preview.
In this example:
She couldn't back down now. In for a bolt, in for a blanket. <!-- they don't have coinage, see [[13.01b Coins and Commodity Money]]-->
the link to my note about the history of coinage is meant to explain why the idiom has been changed from “in for a penny, in for a pound” so I don’t forget later. The link shows up on “linked mentions” in the backlinks bar for 13.01b but it’s still a bit annoying that I can’t interact with the commented information.
It would be great if either html comments just outright had interlink functionality, or if /* comment */ was added in to function this way and html comments were left alone.
Unfortunately, I already use highlights and code blocks extensively throughout my vault to, well, highlight and demarcate code.