benjaffe / logseq-reference-styles

MIT License
37 stars 2 forks source link

Consider applying styles to matching tags, not just brackets #4

Open benjaffe opened 2 years ago

benjaffe commented 2 years ago

rumurphy: "I typically use [the plugin] # for tags and not [[]]. Brackets work. Any chance able to apply stying to # style tags?" benjaffe: "I'll look into applying it to tags, but no promises. It depends on if the appropriate data attributes are applied by Logseq so I can hook into them."

emms007 commented 1 year ago

Applying to tags is quite simple by using CSS using the below tag, would be even nicer to have this maintainable for this plug-in. a.tag[data-ref=mytag]:before { content: '📆'; } Did logseq provide the "required hook" you mentioned?