quarto-dev / quarto-dev/quarto
Formatting doesn't work for indented blocks
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 645
- Forks
- 62
- Avg merge
- 17h 42m
- Merged PRs (30d)
- 13
Description
It is somewhat common to have indented code blocks, like within a bulleted list.
These get borked by Quarto when invoking a formatter on them because the formatter gets a virtual document and removes the "extraneous" indentation
This is enough to make someone turn off formatting in quarto docs (like @hadley) because it completely borks them
* My item
```{r}
1 + 1
```
* My other item
https://github.com/user-attachments/assets/80b99730-8ed3-4cec-aac9-7d05b081c3e6
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file, test, or entry point is named in the issue. Reproduce formatting on the indented code block inside a bulleted list, trace the formatter's handling of the virtual document, and consider the issue complete when indentation is preserved and the example formats without being corrupted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100