list-marker
New Autofix Settings Since v0.1.0
Formatter: marks the items of an unordered list with -, or the marker its settings choose.
Example#
doc.md:
* first
* secondmarkright check reports:
doc.md:1: list item marked differently from the configured marker (list-marker)
doc.md:2: list item marked differently from the configured marker (list-marker)
markright: 2 issue(s)markright fmt rewrites it to:
- first
- secondSettings#
Under formatters.settings.list-marker:
| Key | Meaning | Default |
|---|---|---|
marker | The marker of every item of an unordered list | - |
With the defaults, in .markright.yaml:
formatters:
settings:
list-marker:
marker: "-"or in .markright.toml:
[formatters.settings.list-marker]
marker = "-"Turning it off#
formatters:
disable: [list-marker][formatters]
disable = ["list-marker"]More in Rules.