Open {re}Source @openresource.dev · Oct 9

You can append "#gh-light-mode-only" or "#gh-dark-mode-only" to your image URLs in Markdown. This will ensure only one image is displayed, depending on whether the viewer is in light or dark mode.

0 likes 1 replies

?

Replies

Open {re}Source · Oct 9

But if you need this inside HTML elements, you'll have to create a link that includes the "#gh-light-mode-only" or "#gh-dark-mode-only" anchor tags.