I admit, I’m a newbie when it comes to coding. I practically know next to nothing when it comes to the intermediates and advanced parts. However, Obsidian has been piquing my interest in coding A LOT as of late. I’ve been playing around here in Visual Studio Code and got some of the basics down, but now I’m venturing into some territory where I just feel stuck and don’t know what to do.
This is what I got:
It’s obvious it’s not doing what it’s supposed to be doing (which is wrapping around the entire tag, not just the top & bottom).
Here’s the code I have for it: (If need be, I can provide more code as I don’t know if this is all the code that is needed to achieve a fully-rounded border)
I think you’ll have to play around with the .cm-hashtag-begin and .cm-hashtag-end a bit to see how it goes. Tags in the editor are a bit of a chore. They have a begin, the tag text area, and an end.
Also, depending on what’s being changed, you may need to separate out the editor ( .cm-hashtag ) and rendered/Reading view ( a.tag ) if the paddings, etc., aren’t lining up when switching view modes.