This is the result I want to achieve:
I have wasted many hours trying to make it work but without any result.
I am only able to color the Youtube links into red in Reading View (but not in Editing View) with this snippet:
.markdown-preview-view a[href*="youtube.com"]
{
color: red !important;
font-weight: bold;
}
The html in Reading view is this:
While the html in Editing view is this:
As you can see the links in Editing view have an href="#"
instead of the actual YouTube URL. This causes my CSS targeting href*="youtube.com"
to not work