Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix asciicast image paths for dark mode #32

Closed
yjunechoe opened this issue Feb 19, 2024 · 2 comments
Closed

Fix asciicast image paths for dark mode #32

yjunechoe opened this issue Feb 19, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@yjunechoe
Copy link
Owner

markdown:

<picture>
<source media="(prefers-color-scheme: dark)" srcset="man/figures/README-/setup-io-dark.svg">
<img src="man/figures/README-/setup-io.svg" style="display: block; margin: auto;" />
</picture>

pkgdown html:

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="man/figures/README-/setup-io-dark.svg">
  <img src="reference/figures/README-/setup-io.svg" style="display: block; margin: auto;"></source>
</picture>

<p><picture><source media="(prefers-color-scheme: dark)" srcset="man/figures/README-/setup-io-dark.svg"><img src="reference/figures/README-/setup-io.svg" style="display: block; margin: auto;"></source></picture></p>

@yjunechoe yjunechoe added the documentation Improvements or additions to documentation label Feb 19, 2024
@yjunechoe
Copy link
Owner Author

Also an option to render asciicast to html directly, stead of svg - https://fosstodon.org/@gaborcsardi/111962906731180313

@yjunechoe
Copy link
Owner Author

Resolved upstream in pkgdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant