quarto-dev / quarto-dev/quarto-cli

Quarto 1.4.533: `code-fold:true` together with the new chunk option `lst-label` does not work

Open
#8,040 4 comments 0 reactions 1 assignee View on GitHub

@cscheid is already working on this.

Since Dec 27, 2023.

ast bug lua
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Bug description

Using code-fold: true together with the chunk option lst-label does not work.

But code-fold: true used together with the div syntax works.

Steps to reproduce
## First Test with lst-label

```{r}
#| lst-label: lst-first-test
#| lst-cap: "Test `code-fold: true` with lst-label"
#| code-fold: true

x <- 1
```


## Second Test with div syntax

::: {#lst-second-test}
```{r}
#| code-fold: true

x <- 1


```

Test `code-fold: true` with div syntax

:::
Expected behavior

In the first example, the code should be folded, exactly as in the second (correct) example.

Actual behavior

image

Your environment
  • IDE: RStudio Version 2023.12.0+369 (2023.12.0+369)
  • OS: macOS: Sonoma 14.2.1 (23C71)
Quarto check output
Quarto 1.4.349
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.7: OK
      Dart Sass version 1.55.0: OK
      Deno version 1.33.4: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.4.349
      Path: /Applications/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: (not installed)
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Using: Installation From Path
      Path: /Library/TeX/texbin
      Version: 2023

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.10.9 (Conda)
      Path: /Users/petzi/anaconda3/bin/python
      Jupyter: 5.2.0
      Kernels: python3

[✓] Checking Jupyter engine render....OK

(\) Checking R installation...........R version 4.3.2 (2023-10-31)
[✓] Checking R installation...........OK
      Version: 4.3.2
      Path: /Library/Frameworks/R.framework/Resources
      LibPaths:
        - /Library/Frameworks/R.framework/Versions/4.3-x86_64/library
        - /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library
      knitr: 1.45
      rmarkdown: 2.25

[✓] 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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.