Skip to content

Reformating R cell in VSCODE with air does not correctly close chunk #745

@cderv

Description

@cderv

Originally posted at

But it seems Quarto: Format Cell is a feature from Quarto extension.


Not sure where to post this finding, if this is Quarto VSCODE extension that integrates with Air, or Air VSCODE extension that does.

Here is the document

---
title: "kableExtra"
format: html
execute: 
  eval: false
---

## Quarto

```{r}
library(quarto)

# Without helper functions - Markdown won't be processed
basic_data <- data.frame(
  Item = c("Item 1", "Item 2", "Item 3"),
  Description = c("**Bold text**", "*Italic text*", "`Code text`")
)

knitr::kable(basic_data, format = "html", escape = FALSE, caption = "Without Quarto processing")
```

And here is what happens

Positron_ajRdWXG4aJ.mp4

The closing backticks are not correctly placed, and the last parenthesis is removed

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions