markdown-toc icon indicating copy to clipboard operation
markdown-toc copied to clipboard

Configured indent settings not respected

Open nmss opened this issue 3 years ago • 1 comments

As you can see my indent setting set to 2 spaces image

But the inserted table of content wants to put 3 spaces image

It seems that the default indent size is taken into account, and not the current indent size

note that I'm using the editorconfig extension with this config

[*.md]
indent_style = space
indent_size = 2

nmss avatar May 10 '22 16:05 nmss

This causes problems if you're using TechDocs with Backstage.

## Test list 1

* Level 1
  * Level 2

## Test list 2

* Level 1
    * Level 2

## Test list 3

- Level 1
  - Level 2

## Test list 4

- Level 1
    - Level 2

Renders as:

image

tjrobinson avatar Feb 21 '23 15:02 tjrobinson