-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4025 from ralfhandl/3.2.0-markdown-updates
Markdown updates for 3.2.0
- Loading branch information
Showing
5 changed files
with
842 additions
and
876 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Unordered list symbol | ||
MD004: | ||
style: asterisk | ||
|
||
# Unordered list indentation | ||
MD007: | ||
indent: 2 | ||
|
||
MD012: false # allow blank lines | ||
|
||
MD013: | ||
line_length: 800 | ||
tables: false | ||
|
||
MD024: false # duplicate headings | ||
MD033: false # inline HTML |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
SRCDIR="$(dirname "${BASH_SOURCE[0]}")" # check on Windows | ||
|
||
for filename in $*; do | ||
# mostly to format code blocks with examples, unfortunately messes up bullet lists and tables | ||
npx prettier --write --single-quote $filename | ||
|
||
# repair the tables: remove superfluos spaces and dashes that make diffing revisions harder | ||
# and sed -i is not portable, so we need to use a temporary file | ||
sed -E -e "s/ +\|/ |/g" -e "s/\| +/| /g" -e "s/-----+/----/g" $filename > $filename.tmp && mv $filename.tmp $filename | ||
|
||
# repair the bullet lists and various other markdown formatting issues | ||
npx --yes markdownlint-cli --fix --config $SRCDIR/../.markdownlint.yaml $filename | ||
done |
Oops, something went wrong.