No problem and many thanks, @death.au! I tried combining your two solutions to achieve two other looks but my css isn’t up to the task, apparently. If you are so inclined and have the time, I would love to see solutions for these (no obligation, obviously):
Remove all # symbols from headings but also add a single § to all headers - just one, regardless of heading level.
Remove all # symbols from headings but also add a single § to first-level headings only–other headings get nothing.
I’ll also add that if you’re looking to do this in the editor, the selectors will be .cm-header-1::before for the H1 or .cm-header::before for all headers.
Without looking too deeply into it, I think it’s probably because a heading with a link gets split up into multiple spans with formatting, etc.
You might try adding :first-child to the selector to see if that helps.
The trick is .cm-formatting-header+.cm-header-1 so it only targets the .cm-header-1 span that comes directly after the .cm-formatting-header span. Since headers (usually) only have their formatting symbol at the start, this should be fine.
… It’s possible I spend too much time working on things that really don’t matter. Especially since Obsidian’s default theme seems to not like links in Setex-style headers:
Thank you so much @death.au I really appreciate it, it works perfectly. I get you, I don’t use “Setex-style headers” but still thanks for including code for it!
I’ll update the code here if anyone else is interested in the full code for all headers
Might you have anymore wisdom to share? How do I hide the brackets / parenthesis []() that wrap each link?
Maybe I’m missing something and there is already a way to do this with a community plugin? I checked out Advanced Obsidian URL and Advanced Appearance but those don’t seem to do what I desire…
@Antinik62 Apparently, the problem here is not the Cyrillic letters, but the closing parenthesis ) as part of the URL. In this case you should enclose the entire URL in angle brackets <...> like this: