From c621d09a61bd56f678742925a89307632d212393 Mon Sep 17 00:00:00 2001 From: a8h1km Date: Sun, 5 Jan 2025 11:04:26 +0530 Subject: [PATCH 1/2] Updated 'The Picture element' section as per issue requirements --- .../basic-writing-and-formatting-syntax.md | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/content/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax.md b/content/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax.md index ab9e23aa22e7..442da69cdffc 100644 --- a/content/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax.md +++ b/content/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax.md @@ -265,15 +265,9 @@ Here are some examples for using relative links to display an image. For more information, see [Relative Links](#relative-links). -### Specifying the theme an image is shown to +### The Picture Element -You can specify the theme an image is displayed for in Markdown by using the HTML `` element in combination with the `prefers-color-scheme` media feature. 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. - -For example, the following code displays a sun image for light themes and a moon for dark themes: - -{% data reusables.getting-started.picture-element-example %} - -The old method of specifying images based on the theme, by using a fragment appended to the URL (`#gh-dark-mode-only` or `#gh-light-mode-only`), is {% data variables.release-phases.closing_down %} and will be removed in favor of the new method described above. +The `` HTML element is supported. ## Lists From 08e0aa893a161e78d3f44c689db0c6df8c33139c Mon Sep 17 00:00:00 2001 From: Alex Nguyen <150945400+nguyenalex836@users.noreply.github.com> Date: Mon, 6 Jan 2025 11:18:14 -0800 Subject: [PATCH 2/2] Fix capitalization in heading --- .../basic-writing-and-formatting-syntax.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax.md b/content/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax.md index 442da69cdffc..fd9b73681670 100644 --- a/content/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax.md +++ b/content/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax.md @@ -265,7 +265,7 @@ Here are some examples for using relative links to display an image. For more information, see [Relative Links](#relative-links). -### The Picture Element +### The Picture element The `` HTML element is supported.