Skip to content

Change list item indent from tab (size) to one #48

Closed
@wooorm

Description

@wooorm

Initial checklist

Problem

While one is used more by authors, historically there have been problems when using it across parsers, hence why the default is tab.

Solution

To illustrate, one:

1. asd
10. asdasd
100. asdasdasd

* asd
* asdasd
* asdasdasd

tab:

1.  asd
10. asdasd
100.    asdasdasd

*   asd
*   asdasd
*   asdasdasd

Note that tab is more consistent. Especially around the 1st and 10th mark of incrementally numbered items. And the 100th, 1kth, 10kth items. Whereas one will always be staggered. It’s probably most common to have lists between 1-99 items, hence I deem that most important.
This is mostly noticeable when trying to indent further lines: they have to match the items “bullet” \d+[\.)]\ {1,4}.

Still, one seems to be used more? So probably good to switch the default output format to that?

Alternatives

stay as is

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