@media print {
a:link, a:visited, a {
color: red;
}
This works only when I use <a href="https://example">link</a>. However, it does not change my hyperlinks using Obsidians markdown language: [link](https://google.com).
What I’m trying to do
How can I change the color of [link](https://example.com) markdown hyperlinks within a CSS snippet?
Hi thank you for trying to help. Unfortunately this doesn’t work. I suppose I don’t really care about the visited segment but rather the general color:
@media print {
a:link {
color: red;
}
}
Just wish for the hyperlinks to be red:
I have so many hyperlinks throughout the document that it would be painful to change all []() hyperlinks to that of <a href=""></a>. Just wondering if there is a way to make a CSS snippet for the []() markdown links as opposed to the <a href=""></a> syntax?
HI, thank again, but even with a.link it doesn’t work. This appears to be associated with a href, and not that of markdown links. Do you know what CSS is required here for markdown links as opposed to a?
I don’t know what Obsidian’s particular markup needs, but in general a:link is a proper thing. I forget what it’s called, but it’s not a class, which is what a.link indicates.