Format italic internal links

Hi,

I’m using the Sanctum theme, in which italic links (internal and external) are not rendered at all. I have no idea why, bold links are working. So I’m trying to use CSS to make up for it.

I currently have:

.markdown-source-view.mod-cm6 .cm-hmd-internal-link, .markdown-rendered .internal-link em .cm-em {
  font-style: italic;
}

Which is displaying all links as italic. I’m not sure how to differentiate the non italic from the italic ones. I would really appreciate any help with this. Thanks in advance!

When you say italic links, you mean:

_[[link]]_ and _[link](link.md)_

yeah?

I don’t know why Sanctum isn’t picking up the italic there, but you could try:

.cm-s-obsidian :is(.cm-link.cm-em, .cm-hmd-internal-link.cm-em),
.markdown-rendered :is(em > .internal-link, em > .external-link) {
    font-style: italic;
}

edit: forgot _[google](https://www.google.com)_ (adjusted the above snippet)

Yes, thats exactly it, thank you very much! This works perfectly.

Yeah, I also don’t know why Sanctum isn’t picking it up. It looked weird when you had normal text in between links and formatting was something like: This is an italic sentence, with a Link in between. Sadly the theme isn’t maintained anymore and Sanctum Reborn also has this and some more problems. So, thanks again!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.