Skip to content

code-link and code-line-numbers do not work together #3519

@jwarz

Description

@jwarz

Bug description

If code-line-numbers: true is used together with code-link: true only base-r functions outside of code blocks are being linked.

---
format: 
  html: 
    code-link: true
    code-line-numbers: true # linking works with false
---

`filter()`, `ggplot()`

```{r}
library(ggplot2)

mtcars |> 
  ggplot(aes(x = mpg, y = disp)) +
    geom_point()
```

Studio version: 2022.07.2 Build 576
R version: 4.2.2
quarto version: 1.2.269
OS: macOS Ventura 13.0.1

Checklist

  • Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
  • Please format your issue so it is easier for us to read the bug report.
  • Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
  • Please document the operating system you're running. If on Linux, please provide the specific distribution.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions