From b2106554245a9e8587677ba6c6c5b6b464269c75 Mon Sep 17 00:00:00 2001 From: hayesall Date: Sun, 22 Oct 2023 14:34:07 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Document=20the=20light=20and=20d?= =?UTF-8?q?ark=20image=20variants?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- guide/src/format/markdown.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/guide/src/format/markdown.md b/guide/src/format/markdown.md index c2619113..2a2bd3b7 100644 --- a/guide/src/format/markdown.md +++ b/guide/src/format/markdown.md @@ -117,19 +117,20 @@ Which, of course displays the image like so: ![The Rust Logo](images/rust-logo-blk.svg) + ## Light and Dark Image Variants Separate light mode and dark mode images may be presented to the viewer by adding `#light-only` or `#dark-only` to an image path: ```markdown - - +![rust logo standard edition](images/rust-logo-blk.svg#only-light) +![rust logo dark mode](images/rust-logo-blk-dark.svg#only-dark) ``` Try switching the theme to see the effect below (brush icon at the top left of the page): - - +![rust logo standard edition](images/rust-logo-blk.svg#only-light) +![rust logo dark mode](images/rust-logo-blk-dark.svg#only-dark) ## Extensions