Skip to content

Commit 4573bd7

Browse files
authored
Merge pull request #4041 from ralfhandl/v3.1.1-dev-markdownlint
markdownlint for 3.1.1.md
2 parents 16ab5f8 + d37c58e commit 4573bd7

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

.github/workflows/validate-markdown.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ jobs:
2323
fetch-depth: 0
2424
- name: use the javascript environment from main
2525
run: |
26-
git checkout remotes/origin/main -- package.json package-lock.json
26+
git checkout remotes/origin/main -- package.json package-lock.json .markdownlint.yaml
2727
- uses: actions/setup-node@v4 # setup Node.js
2828
with:
2929
node-version: '20.x'
3030
- name: Validate markdown
3131
run: npx --yes mdv versions/3.*.md
32+
- name: Lint markdown v3.1.1
33+
run: npx --yes markdownlint-cli --config .markdownlint.yaml versions/3.1.1.md
3234

.markdownlint.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Unordered list symbol
2+
MD004:
3+
style: asterisk
4+
5+
# Unordered list indentation
6+
MD007:
7+
indent: 2
8+
9+
MD012: false # allow blank lines
10+
11+
MD013:
12+
line_length: 800
13+
tables: false
14+
15+
MD024: false # duplicate headings
16+
MD033: false # inline HTML

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,8 @@
3131
"Swagger",
3232
"schema",
3333
"API"
34-
]
34+
],
35+
"scripts": {
36+
"format-markdown": "npx prettier --write --single-quote versions/3.1.1.md && npx --yes markdownlint-cli --fix --config .markdownlint.yaml versions/3.1.1.md"
37+
}
3538
}

0 commit comments

Comments
 (0)