Skip to content

Formatting doesn't work for indented blocks #811

@DavisVaughan

Description

@DavisVaughan

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
Screen.Recording.2025-09-04.at.9.31.32.AM.mov

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