quarto-dev / quarto-dev/quarto

Triple backticks inside strings inside a code block will bork highlighting

Open
#746 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug source-editor vscode
Dominant language
TypeScript
Stars
645
Forks
62
Avg merge
17h 42m
Merged PRs (30d)
13

Description

Bug description
```{r}

"
```
```
"

```

Results in

Image
Steps to reproduce

No response

Actual behavior

No response

Expected behavior

No response

Your environment

No response

Contributor guide

No contributing guide indexed for this repository

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 by reproducing the fenced example in the issue and trace the code-block parsing and highlighting path. Done means triple backticks inside a string within a fenced block no longer break highlighting, with a regression test covering the shown case.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown, r
Domain
documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.