Skip to content

Don't insert spaces after list items markers when switching to visual mode in the VS Code extension #913

@joelostblom

Description

@joelostblom

Currently, switching to visual mode in the VS Code extension inserts three additional whitespaces after each list item marker. Take the following qmd file as an example:

# A title heading

Some text here and there

- a list
- with some
- items

If I switch to Visual Mode and then back to source mode again, the file has been modified to look like this:

# A title heading

Some text here and there

-   a list
-   with some
-   items

This seems consistent with how pandoc --to mardown, but in the quarto documentation lists are generally written with a single space following the list marker. Would it be possible to support this in the VS Code extension, either as a new default or an option depending on what is the most appropriate?

In the commonmark docs, there is a short writeup on their motivation to change away from the legacy four space rule and support a more flexible list space design that defaults to single space. This output can also be achieved with pandoc --to commonmark:

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions