mdsmith
Esc
    v0.52.0 GitHub
    MDS016 list ready

    MDS016: list-indent

    List items must use consistent indentation.

    # Settings

    SettingTypeDefaultDescription
    spacesint2Number of spaces per indentation level

    # Config

    Enable (default):

    rules:
      list-indent:
        spaces: 2

    Disable:

    rules:
      list-indent: false

    Custom (4-space list indent):

    rules:
      list-indent:
        spaces: 4

    # Examples

    # Bad (when spaces is 2)

    # Title
    
    - item one
        - nested item

    4-space indent when configured for 4 spaces:

    # Title
    
    - item one
      - nested item

    # Good (when spaces is 2)

    # Title
    
    - item one
      - nested item

    4-space indent when configured for 4 spaces:

    # Title
    
    - item one
        - nested item

    # Meta-Information

    • ID: MDS016
    • Name: list-indent
    • Status: ready
    • Default: enabled, spaces: 2
    • Fixable: yes
    • Implementation: source
    • Category: list
    • markdownlint:
    • rumdl:
    • mado: