Closed prosoitos closed 1 month ago
It looks like the colors are from textmate.css
. Profvis includes a very old version of highlight.js which doesn't do any scoping -- all <span>
s are affected by the CSS.
I think this can be fixed by adding .profvis-code
to the CSS rules.
After taking a closer look, I think highlight.js itself will also need to be upgraded for everything to work properly.
Actual link to underlying issue: https://github.com/quarto-dev/quarto-cli/issues/3991
Minimal reprex:
---
format: html
---
```{r}
f <- function() {
pause(0.1)
}
profvis::profvis(f())
See issue quarto-dev/quarto-cli#3991 for reproducible example and explanations.