Using custom and built-in light
and dark
highlight-style:
#12422
Closed
xx02al
started this conversation in
Feature Requests
Replies: 1 comment 1 reply
-
Closed by #12734. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hi quarto devs
I recently found that when intending to specify both a
light
anddark
highlight-style
it's currently required to have both stored locally. Regardless of whether both are built-in or one of them is custom. Wouldn’t it be nice to allow users to choose two different syntax highlight style themes forlight
anddark
mode without having to copy and paste and store locally!?In case you wondered, yes, I am fully aware that if a built-in theme has both, a light and dark version, we automatically switch (which is great so far of course).
The most related issue I could find was #990.
Here is a
.qmd
reprex.This works as expected:
Replacing the YAML with for example what is shown next breaks syntax highlighting:
If we go to https://github.com/quarto-dev/quarto-cli/tree/main/src/resources/pandoc/highlight-styles and make the files mentioned available locally, it works like so:
Beta Was this translation helpful? Give feedback.
All reactions