geffrey

joined 2 years ago
[–] geffrey@pkm.social 0 points 1 year ago

@ellane @obsidianmd Would this work for your, Ellane?

I can make it more fancy, stand out more, if you like.

It would require you to “span” it. But that could be done with a template or so.

<span>TK</span>

[–] geffrey@pkm.social 1 points 1 year ago

@ellane @obsidianmd I’ve looked at it for 30 minutes but no luck. Working with Obsidian's Codemirror 6 is harder than I thought! I hoped to fix it with some neat Typescript and Regex, but that didn’t work.

I’ll see if I can do something helpful using only CSS.

[–] geffrey@pkm.social 0 points 1 year ago

@ellane @obsidianmd Dynamic Highlights will highlight the ‘TK’ when you search for it. :) That might satisfy your need.

[–] geffrey@pkm.social 0 points 1 year ago (3 children)

@ellane @obsidianmd It would need to be a plugin, that’s right ☺️

[–] geffrey@pkm.social 0 points 1 year ago* (last edited 1 year ago) (5 children)

@ellane @obsidianmd I could get you something like that with a “custom” native callout :). Would that work?

I’m still at work, but after I can make an attempt.

EDIT I’m sorry, I misread the requirement. What you describe can not be achieved with CSS alone. It’ll require some Javascript to detect the ‘TK’. I will give it a try.