r-lib / pkgdown

Generate static html documentation for an R package
https://pkgdown.r-lib.org/
Other
721 stars 336 forks source link

Add Quarto code with filename (#2776) #2779

Open Nenuial opened 2 months ago

Nenuial commented 2 months ago

This is my attempt to implement code with filename in Quarto vignettes.

This would close #2776.

jacpete commented 1 month ago

Looks like something in this PR is throwing off the pre tags from getting the correct background color. here is the main branch rendered locally: image

Vs this PR: image

Nenuial commented 1 month ago

@jacpete Yes, you are correct. I didn't check this in dark mode, sorry about that.

It took me a while to figure out the exact elements to tweak, but I think it now works with the same colors as the base code blocks.