quartz
quartz copied to clipboard
Remove links for pages that don't exist
I believe it is bad design to link to pages that we know do not exist. It is ok to do with within Obsidian, but not on a public facing site. It goes against end user's expectations of clicking on a link and having it go where it suggests.
If I have [[Missing Link]] on a page, and have not provided "Missing Link.md" then when parsing the wikilinks, I would prefer to see no link, rather than a link which goes nowhere.
Simply put, iIf the target page of a wiki link from Obsidian is not in the list of known pages, do not link.
Some people may like this behaviour, so there could be options in the config,
- as currently works
- do not create link
- link, but with a css tag indicating the link is missing (Obsidian Publish) does this.
I've looked at the code but don't have the ability to work out exactly what change is required.
If I have [[Missing Link]] on a page, and have not provided "Missing Link.md" then when parsing the wikilinks, I would prefer to see no link, rather than a link which goes nowhere.
Just want to confirm that not everyone would like this behavior!
Like you said, if such functionality is added it should be configurable!
I agree this would be a really nice feature and much needed when you use a single vault for your public and private notes.
In addition to it being configurable, I think it would also be nice to be able to style those links differently, vs. removing the link in its entirety.