this post was submitted on 06 Oct 2023
6 points (87.5% liked)
ObsidianMD
3764 readers
1 users here now
Unofficial Lemmy community for https://obsidian.md
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
@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.
@ellane @obsidianmd It would need to be a plugin, that’s right ☺️
@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.