-
Notifications
You must be signed in to change notification settings - Fork 335
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
Downlit not run on articles? #1556
Comments
that vignette above is about unexported helpers, I see links in e.g. https://googlesheets4.tidyverse.org/articles/articles/write-sheets.html (but maybe I'm missing something else) |
Oh I wasn't specific enough — in (e.g.) the output of the first chunk, we don't see any of the formatting applied by cli. |
Here are screenshots 😱 that show what the interactive experience of this styling is. Note the colors of the cli symbols and that the symbols are not the same color as the text. See how the main text is in white (or default color) and Sheet names are blue and worksheet or range names are green? These distinctions, between main text and styled text and between text styled 2 different ways ( |
It should look the same as it does in, say, examples: https://googlesheets4.tidyverse.org/reference/range_read.html Why do the vignettes and article not get same styling as examples? Here's another article where the messages are completely "flat". https://googlesheets4.tidyverse.org/articles/articles/write-sheets.html |
I learnt today that reference building uses |
So fixing this issue might warrant adding downlit stuff in a knitr hook? |
It might even be easier to set hooks for warnings and messages. |
We could do this using the same technique as hugodown (e.g. |
was this/will it be somehow addressed by downlit recent changes? |
It will be resolved. |
FWIW I'm using https://github.com/tidyverse/tibble/blob/master/R/fansi.R as a stop gap for now. |
If this happens will need to build |
This turned out to be much less complex than I had feared — it was mostly just turning crayon/cli on in articles, and then handling the pain of |
e.g. https://googlesheets4.tidyverse.org/articles/articles/messages-and-errors.html
The text was updated successfully, but these errors were encountered: