mdelobelle / obsidian_supercharged_links

obsidian plugin to add attributes and context menu options to internal links

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow using icons from the Obsidian Icon folder

HEmile opened this issue · comments

From Obsidian forum:

Hi. Is there any way to get Icons (from the Obsidian Icons folder that Icon Folder, Icons and Icon Shortcodes plugins use)?

If not is there any possibility of this being a future possibility? This would be really useful as these are generally far nicer than the OS emojis.

With some work, SVG icons can be used.

a.internal-link[data-link-type="ttrpg-pc"]::before{
    display: inline-block;
    content: url("data:image/svg+xml,<url encoded svg>");
    margin-right: 0.5em;
    filter: invert(44%) sepia(88%) saturate(680%) hue-rotate(153deg) brightness(94%) contrast(103%);
}

+1 very good idea