Add theme context for images in Markdown support (#22830)
* add theme context for images support
This commit is contained in:
@@ -134,6 +134,18 @@ Here are some examples for using relative links to display an image.
|
|||||||
|
|
||||||
For more information, see "[Relative Links](#relative-links)."
|
For more information, see "[Relative Links](#relative-links)."
|
||||||
|
|
||||||
|
{% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5559 %}
|
||||||
|
### Specifying the theme an image is shown to
|
||||||
|
|
||||||
|
You can specify the theme an image is displayed to by appending `#gh-dark-mode-only` or `#gh-light-mode-only` to the end of an image URL, in Markdown.
|
||||||
|
|
||||||
|
We distinguish between light and dark color modes, so there are two options available. You can use these options to display images optimized for dark or light backgrounds. This is particularly helpful for transparent PNG images.
|
||||||
|
|
||||||
|
| Context | URL |
|
||||||
|
|--------|--------|
|
||||||
|
| Dark Theme | `` |
|
||||||
|
| Light Theme | `` |
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
## Lists
|
## Lists
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user