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

Can the applied styling be based on a property?

machado-t opened this issue · comments

I'll try to explain it better with an example.
Some files have the property "icon" with an emoji. Could this emoji be appended to the links using this plugin?

Could this be done with CSS maybe?

Yes, this can be done with css. See the examples in the README.
Something like this should work:

.data-link-icon-before[data-link-icon]::before{
    content: attr(data-link-icon)
}