huntertran / markdown-toc

Auto MarkdownTOC (Table Of Contents) plugin for Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=huntertran.auto-markdown-toc
MIT License
39 stars 25 forks source link

Configured indent settings not respected #55

Open nmss opened 2 years ago

nmss commented 2 years ago

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
tjrobinson commented 1 year ago

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