Replies: 13 comments 27 replies
-
Hello I noticed that contextual paths are not rewritten with the new Before one could write this <img src=".github/images/colorful.svg?raw=true#gh-light-mode-only" width="100%" height="100">
<img src=".github/images/gray.svg?raw=true#gh-dark-mode-only" width="100%" height="100"> and paths would be prepended with the current branch context, eg: <img src="/owner/repo/raw/current-branch/.github/images/gray.svg?raw=true#gh-dark-mode-only" width="100%" height="100" style="max-width: 100%;"> However, the image paths are not prepended with <picture>
<source media="(prefers-color-scheme: dark)" srcset="/owner/repo/raw/current-branch/.github/images/gray.svg?raw=true" width="100%" height="100">
<img src="/owner/repo/raw/current-branch/.github/images/colorful.svg?raw=true" width="100%" height="100">
</picture> |
Beta Was this translation helpful? Give feedback.
-
It seems |
Beta Was this translation helpful? Give feedback.
-
This is a really nice feature, but it seems the loading does not always work? I added it to our Readme here https://github.com/JuliaManifolds/Manifolds.jl/blob/kellertuer/dark-logo-readme/README.md But I had to switch from |
Beta Was this translation helpful? Give feedback.
-
You can now specify the theme an image is displayed for in Markdown using the HTML
I Rather teach one pray then men to teach &@bubba-123/ |
Beta Was this translation helpful? Give feedback.
-
It seems the iOS app does not yet support this feature. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to add ability to use relative image links? This is possible for "regular" markdown image syntax but doesn't seem to work for this new approach. For example, if we are referencing an image in assets subdirectory of where the markdown file is located,  |
Beta Was this translation helpful? Give feedback.
-
sure,you can |
Beta Was this translation helpful? Give feedback.
-
and what about svg render? |
Beta Was this translation helpful? Give feedback.
-
i would also love to have that also
bad
…On Mon, Jun 13, 2022, 11:59 duongdam ***@***.***> wrote:
and what about svg render?
—
Reply to this email directly, view it on GitHub
<https://github.com/orgs/github-community/discussions/16910#discussioncomment-2937462>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZPEV4HRXCSFE3X7LLMFMX3VO4H75ANCNFSM5WL3WSKQ>
.
You are receiving this because you commented.Message ID:
***@***.***
.com>
|
Beta Was this translation helpful? Give feedback.
-
@dipree |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Sorry if this is a duplicate of #1583. GitHub seems to set the
The expected output should have been: ReplicationThis happens only when you use the following settings:
When this configuration is used, the github page sets |
Beta Was this translation helpful? Give feedback.
-
@dipree Good news it also works for Asciidoc documents if using the HTML passthrough ++++
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/25423296/163456776-7f95b81a-f1ed-45f7-b7ab-8fa810d529fa.png">
<img alt="Shows an illustrated sun in light color mode and a moon with stars in dark color mode." src="https://user-images.githubusercontent.com/25423296/163456779-a8556205-d0a5-45e2-ac17-42d089e3c3f8.png">
</picture>
++++
This should also work with images contextual to a repository, say |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
You can now specify the theme an image is displaye 10000 d for in Markdown using the HTML
<picture>
element in combination with theprefers-color-scheme
media feature.For example:
Renders as:
We released a first iteration of this functionality last year and received a lot of great feedback from you. We reviewed again the possibilities and concluded that using the HTML
<picture>
construct is the best option from multiple points of view. We came up with a solution that makes it work with the GitHub theming system which was the initial concern.Thank you for all the great feedback so far and let us know if there's anything that isn't quite working as expected.
Beta Was this translation helpful? Give feedback.
All reactions