Skip to content
This repository was archived by the owner on May 27, 2021. It is now read-only.
This repository was archived by the owner on May 27, 2021. It is now read-only.

Indentation Issue - MD007/ul-indent #60

@jmcmaster05

Description

@jmcmaster05

Issue

Notice from VS Code - Markdown Lint (davidanson.vscode-markdownlint)
MD007/ul-indent: Unordered list indentation [Expected: 2; Actual: 4]
https://github.com/DavidAnson/markdownlint/blob/v0.11.0/doc/Rules.md#md007

Example

<!-- TOC -->

- [Generate SSH Key for SFTP Use](#generate-ssh-key-for-sftp-use)
    - [Table of Contents](#table-of-contents)
    - [References](#references)

Currently TOC uses 4 spaces for each indentation for the Unordered TOC list, instead of the standard 2 spaces.

Code

https://github.com/AlanWalk/markdown-toc/blob/1fc815ec26d063b38502932641a80497fbf71f24/src/extension.ts#L268

editor.tabSize is defaulted to 4.

Workaround

Create .markdownlint.json in project root per project. 😞

{
    "MD007": { "indent": 4 }
}

Please let me know if I've overlooked a setting or if you are aware of a better solution.
I've researched yzhang-gh/vscode-markdown#155

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions