jackyzha0 / quartz

🌱 a fast, batteries-included static-site generator that transforms Markdown content into fully functional websites
https://quartz.jzhao.xyz
MIT License
7.35k stars 2.54k forks source link

Pages with empty internal links show up as backlinks to index note #1561

Open blacklightpy opened 2 weeks ago

blacklightpy commented 2 weeks ago

Describe the bug I had a note that had a "[[]]" string in it, representing a note I forgot to link. The home page showed the note containing that string under backlinks. When I removed that string and pushed, the new build did not have the same mistake.

To Reproduce Skipping

Expected behavior It does not show up as a backlink.

Screenshots and Source Too lazy, and not necessary, but the page containing "[[]]" was listed here:

image

Desktop (please complete the following information):

saberzero1 commented 2 weeks ago

I believe this is intended behavior, as your link resolved to /, which is your root index file.

saberzero1 commented 2 weeks ago

@aarnphm do we want to ignore empty links ([[]] => "[[]]"), remove them ([[]] =V ""), or include them (current, see issue)? I'll add it to the wikilink/markdownlink part of the parser rework.

aarnphm commented 2 weeks ago

seems like [[]] on obsidian would just open to current file. We can probably ablate them

probably worth to have a notes somewhere noting deviation from obsidian rendering logic