enhancement: invert images automatically based on light/dark mode
Closed this issue · 0 comments
philips commented
It seems I can invert images automatically by doing this in CSS:
.theme-dark img[alt$="sop_invert_dark"] {
filter: invert(1);
}
.theme-light img[alt$="sop_invert_light"] {
filter: invert(1);
}
Then I can register this CSS via https://docs.obsidian.md/Reference/TypeScript+API/Plugin/registerMarkdownCodeBlockProcessor
I would also need to do this in my note view.
cc @scotte