quarto-dev / quarto-dev/quarto-cli
Selection of code leaves gaps on new-lines
Open
Nobody has claimed this yet.
bug
revealjs
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Bug description
When you select code in a code chunk in revealjs slides (could not reproduce with html format) it leaves a gap in the selection.
Steps to reproduce
---
format: revealjs
---
```{r}
#| echo: true
mtcars |>
head()
```
Expected behavior
I expect it to look like this:
Actual behavior
This is what happens when you select
Your environment
- IDE: Version 2023.09.0-daily+203 (2023.09.0-daily+203)
- OS: macOS Venture 13.4
Quarto check output
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.5: OK
Dart Sass version 1.55.0: OK
Deno version 1.33.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.4.220
Path: /Applications/quarto/bin
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.9.7 (Conda)
Path: /Users/emilhvitfeldt/miniforge3/bin/python
Jupyter: (None)
Jupyter is not available in this Python installation.
Install with conda install jupyter
[✓] Checking R installation...........OK
Version: 4.2.1
Path: /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources
LibPaths:
- /Users/emilhvitfeldt/Library/R/arm64/4.2/library
- /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library
knitr: 1.43
rmarkdown: 2.22
[✓] Checking Knitr engine render......OK
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.
Research direction
Start with the provided revealjs Markdown reproducer and compare its code-selection rendering with the HTML format, using the screenshots as the expected and actual behavior. Trace the revealjs code-chunk selection path; done means selecting code across a newline leaves no visual gap while the existing HTML behavior remains unaffected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100