-
Notifications
You must be signed in to change notification settings - Fork 336
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
crayon/cli output in vignettes when comment="" #1965
Comments
downlit only escapes comments so any custom output prefix that doesn't start with Wasn't there some discussion of whether rmarkdown itself could run downlit via a hook? 🤔 |
For reference rstudio/rmarkdown#1881 |
Yeah, we had to use a regexp for this, so you'll need to deliberately suppress crayon in your vignette. |
But if rmarkdown supported downlit, could the regexp become useless? I.e. the highlighting & escaping would be done as a knitr output hook or so? |
@maelle right, but I think we're some distance from that. |
I'm closing this since supporting arbitrary comment prefixes is still a long way away, still a lot of work, and still not requested by that many people. |
Follow up on: #1858.
Vignettes that set a custom output prefix (instead of
##
) for example the empty string:This has the unexpected side-effect that ansi codes do not get escaped anymore. A tibble will print a lot of escape sequences:
The text was updated successfully, but these errors were encountered: