Skip to content

Code filename not correctly placed when used on computational chunk #2683

Description

@cderv

Bug description

From https://github.com/quarto-ext/code-filename/issues/3 but extensions has been included inside core now.

---
title: Test
format: html
---

Non computation code filename

```{.r filename="file.R"}
1 + 1 
```

Inside code-fold

```{r filename="file.R"}
#| code-fold: true

1 + 1
```

image

Do we want to support filename on computational chunk ? (which does not follow the YAML in chunk syntax)

If not, we should deactivate.
If we do, we maybe to introduce as YAML option and/or put the filename inside the folding of source.

Related Discussion item: #2642

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

Labels

bugSomething isn't workingcrossref

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions