obsidian-iconize
obsidian-iconize copied to clipboard
Multiple Icons are visible when the note is linked and aliased on another Note
Describe the bug Multiple Icons are visible when the note is linked and aliased on another Note
To Reproduce Please note, I placed emojis here to show where the icons appear. In reality, I used the Font Awesome Solid icons for my notes.
There are two ways links work in Obsidian as I found so far:
ONE
If you start typing [[
the notes will appear and if you choose the note from the dropdown, the link will be like below:
[[๐โโ๏ธ../../Profile/Someone Awesome|๐โโ๏ธSomeone Awesome]]
If you place out your cursor from the line the icons appear like below: ๐โโ๏ธ๐โโ๏ธSomeone Awesome
TWO If you drag & drop a note into another, that appears like the below: ๐โโ๏ธ../../Someone Awesome In this case, the icon is visible once, but the path is visible. We can easily solve this by aliasing the link:
[[๐โโ๏ธ../../Profile/Someone Awesome|Awesome]]
And that works, but if you try to type the title of the note, the icon appears double:
[[๐โโ๏ธ../../Profile/Someone Awesome|๐โโ๏ธSomeone Awesome]]
๐โโ๏ธ๐โโ๏ธSomeone Awesome
BTW If you have a single note in the vault, the default way of linking a note:
[[๐โโ๏ธSomeone Awesome]]
works without trouble. But it breaks when there are two with the same name in different directory
Expected behavior For each file, the icon should be visible only once ๐โโ๏ธSomeone Awesome
or there should be no icon in a link Someone Awesome