Skip to content

Commit ec5fc20

Browse files
Add script to fix Markdown style
1 parent 7b225b1 commit ec5fc20

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
#
3+
# Fix Markdown style errors,
4+
# as is recommended by the Markdown checker.
5+
#
6+
# Usage:
7+
#
8+
# ./scripts/fix_markdown_style_errors.sh
9+
10+
if [[ "$PWD" =~ scripts$ ]]; then
11+
echo "FATAL ERROR."
12+
echo "Please run the script from the project root. "
13+
echo "Present working director: $PWD"
14+
echo " "
15+
echo "Tip: like this"
16+
echo " "
17+
echo " ./scripts/fix_markdown_style_errors.sh"
18+
echo " "
19+
exit 42
20+
fi
21+
22+
markdownlint --fix "**/*.md"
23+
git status
24+

0 commit comments

Comments
 (0)