-
Notifications
You must be signed in to change notification settings - Fork 343
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
Syntax highlighting messed up by profvis::profvis() #3991
Comments
Also: as the function, somehow, seems to interfere with the CSS section that has to do with syntax highlighting in Of note, I have some Bash blocks on the same file and those are not affected. If I add some |
@prosoitos if you look at the HTML code with and without
Quarto is using Pandoc syntax highlighting with HTML, and use some CSS theme accordingly. Using profvis will bring highlight.js, run it and bring a theme I am surprised that profvis actions are not scoped and applies also on other code blocks (looking at the HTML on the code blocks, it seems they get process by highlight.js functions too). So I would say this is an issue with profvis directly.
By not running BTW this is the same with R Markdown as with Quarto - Same behavior when you tell R Markdown to highlight using Pandoc but it gets messed up by Profvis Example Rmd---
title: "R Notebook"
output:
html_document:
highlight: arrow
---
```{r}
library(profvis)
f <- function() {
pause(0.1)
}
profvis(f())
``` |
Right. Thank you. Should I then open an issue in the profvis project? Since the package is also developed by Posit, maybe it is fine to keep it here?? |
It is not develop by the same team, and the maintainer of profvis does not track in Quarto. I can't migrate the issue between Quarto org and RStudio org. So if possible, it is best to open an issue in Profvis as it affect also R Markdown. Thank you ! |
OK, will do and I guess I should close this issue here. Thank you! |
Bug description
The function
profvis::profvis()
, somehow, messes up the syntax highlighting of R code blocks.Example
File:
Normal syntax highlighting:
With
profvis::profvis()
:Syntax highlighting totally messed up:
Context
Same behaviour with any highlight style, with
format: revealjs
andformat: html
, within a website or outside.Note: this might be something weird that the function is doing and may not be a Quarto bug per se.
OS
Arch Linux (6.1.6-arch1-1)
Checklist
The text was updated successfully, but these errors were encountered: