quarto-dev / quarto-dev/quarto-cli
code-link and code-line-numbers do not work together
Open
@cderv is already working on this.
Since Apr 24, 2023.
bug
computations
source-code
upstream
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.