# Specify theme context for images in Markdown

DevFeed: [Specify theme context for images in Markdown](<https://devfeed.tech/articles/specify-theme-context-for-images-in-markdown-74240.md>)

Original publisher: [Read original article](<https://github.blog/changelog/2021-11-24-specify-theme-context-for-images-in-markdown>)

Author: Sidi Merzouk

Published: 2021-11-24T17:06:48Z

Content type: release

Language: en

Sources: [GitHub Changelog](<https://devfeed.tech/sources/github-changelog.md>)

Topics: [Dark Mode](<https://devfeed.tech/topics/dark-mode.md>), [Markdown](<https://devfeed.tech/topics/markdown.md>)

Tags: [context](<https://devfeed.tech/tags/context.md>), [dark-mode](<https://devfeed.tech/tags/dark-mode.md>), [images](<https://devfeed.tech/tags/images.md>), [light-mode](<https://devfeed.tech/tags/light-mode.md>), [markdown](<https://devfeed.tech/tags/markdown.md>)

## AI overview

Append `#gh-dark-mode-only` or `#gh-light-mode-only` to an image URL in Markdown to show that image only to viewers using GitHub's dark or light theme, respectively. The example pairs two GitHub logo images with opposite theme suffixes.

## Source excerpt

Users can now specify the theme an image is displayed for in Markdown. Appending #gh-dark-mode-only or #gh-light-mode-only to the end of an image url will define whether it's only shown...