Anyone want to write me some #CSS to make the traditional writer’s reminder of missing information, TK, show up prominently in #Obsidian wherever it occurs within a long text?
I’m thinking sans serif bold small caps, nicely letter spaced, maybe in light orange. Like Medium does it. Doesn’t have to be offset to the side, just a nice visual blip to catch one’s attention in the flow of the text.
@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 class=“tk-highlight”>TK</span>
@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.
deleted by creator
@ellane @obsidianmd It would need to be a plugin, that’s right ☺️
deleted by creator
@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.
@ellane @obsidianmd Dynamic Highlights will highlight the ‘TK’ when you search for it. :) That might satisfy your need.