We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a8c4ca commit 59decdfCopy full SHA for 59decdf
scripts/format-markdown.sh
@@ -1,5 +1,7 @@
1
#!/bin/bash
2
3
+SRCDIR="$(dirname "${BASH_SOURCE[0]}")" # check on Windows
4
+
5
for filename in $*; do
6
# mostly to format code blocks with examples, unfortunately messes up bullet lists and tables
7
npx prettier --write --single-quote $filename
@@ -9,5 +11,5 @@ for filename in $*; do
9
11
sed -E -e "s/ +\|/ |/g" -e "s/\| +/| /g" -e "s/-----+/----/g" $filename > $filename.tmp && mv $filename.tmp $filename
10
12
13
# repair the bullet lists and various other markdown formatting issues
- npx --yes markdownlint-cli --fix --config .markdownlint.yaml $filename
14
+ npx --yes markdownlint-cli --fix --config $SRCDIR/../.markdownlint.yaml $filename
15
done
0 commit comments