Add various Markdown lists as formatted by Prettier with the default --tab-width of 2 and the not uncommon alternate of 4, update Prettier.md with the relevant configuration (produced using v2.8.1 of https://prettier.io/playground/) (refs #652).

This commit is contained in:
David Anson 2022-12-13 20:24:21 -08:00
parent 21e27a4b63
commit cb16438a41
5 changed files with 180 additions and 7 deletions

View file

@ -12,17 +12,16 @@ Other scenarios are documented below.
The default settings of `markdownlint` and `Prettier` are compatible and don't
result in any linting violations. If `Prettier` is used with `--tab-width` set
to `4`, the following `markdownlint` configuration can be used:
to `4` (vs. `2`), the following `markdownlint` configuration can be used:
```json
{
"MD007": {
"indent": 4
},
"MD030": {
"ul_single": 3,
"list-marker-space": {
"ul_multi": 3,
"ol_multi": 2
"ul_single": 3
},
"ul-indent": {
"indent": 4
}
}
```