I’m compiling a CSS that changes a bunch of colors. I think one part “broke” in a recent update to Obsidian.
highlighting a link, so ==[[orange]]==
should appear orange. This works in reading/preview mode, but no longer in editing mode. If I’m using the Inspector correctly, this may because of a new format of those links, data-link-text
. However it seems that because of that, span.highlight.link no longer works, or rather, it’s no longer recognized as “span.highlight.link” and only as “link” (using abbreviated terms)
span.cm-highlight.cm-hmd-internal-link {
/* font-style: initial; */
background-color: var(--highlight-link);
color: #222 !important;
}
body > .app-container div.markdown-preview-view mark > .data-link-text {
background-color: var(--highlight-link);
color: #222 !important;
}
span.cm-highlight.data-link-text {
/* font-style: initial; */
background-color: var(--highlight-link);
color: #222 !important;
}
body > .app-container div.markdown-preview-view mark > .internal-link {
background-color: var(--highlight-link);
color: #222 !important;
}
body > .app-container div.markdown-preview-view mark > .internal-link {
background-color: var(--highlight-link);
color: #222 !important;
}
How can I fix this?
Thanks!