quarto-dev / quarto-dev/quarto-cli

Selection of code leaves gaps on new-lines

Open
#6,191 8 comments 0 reactions 0 assignees View on GitHub

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:

fixed

Actual behavior

This is what happens when you select

Screenshot 2023-07-12 at 11 51 41 AM
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.