MDS045: list-marker-style
Unordered list items must use the configured bullet marker character.
# Settings
| Setting | Type | Default | Description |
|---|---|---|---|
style | string | "dash" | "dash" (-), "asterisk" (*), or "plus" (+) |
nested | list(string) | [] | Per-depth style rotation; cycles by depth % len(nested) |
# Config
Enable with dash style (the default when enabled):
rules:
list-marker-style:
style: dashDisable (default):
rules:
list-marker-style: falseDepth-based rotation (outer uses -, inner uses *):
rules:
list-marker-style:
nested:
- dash
- asterisk# Examples
# Good – dash style
# Good dash marker
This file uses dash markers consistently.
- First item
- Second item
- Third item
Nested list:
- Outer item
- Inner item
- Another inner item
- Another outer item# Good – nested rotation
# Good nested with rotation
Outer lists use dash, inner use asterisk.
- Outer item
* Inner item
* Another inner item
- Another outer item
* More inner
- Depth 2 cycles back to dash
* Depth 3 cycles to asterisk# Bad – wrong marker
# Bad asterisk with dash config
This list uses asterisks but dash is configured.
* First item
* Second item
* Third item# Bad – wrong nested marker
# Bad nested with wrong inner marker
Outer uses dash (correct), inner should use asterisk but uses dash.
- Outer item
- Inner item should be asterisk
- Another inner item should be asterisk
- Another outer item# Meta-Information
- ID: MDS045
- Name:
list-marker-style - Status: ready
- Default: disabled
- Fixable: yes
- Implementation: source
- Category: list
- markdownlint: MD004 (ul-style)
- rumdl: MD004 (ul-style)
- mado: MD004 (ul-style)
- obsidian-linter: unordered-list-style
- gomarklint: consistent-list-marker