1
0
Fork 0
mirror of https://github.com/nickpoida/og-aws.git synced 2025-03-09 15:40:06 +00:00

Gentle formatting fixes we can run more often. (#443)

Fixes a bunch of inadvertently preformatted text due to >4 spaces after a bullet.
This commit is contained in:
Joshua Levy 2017-05-15 12:58:33 -07:00 committed by Thanos Baskous
parent e266e1a5c7
commit 5e5be52f99
3 changed files with 47 additions and 29 deletions

View file

@ -1,6 +1,8 @@
#!/bin/bash
# Put main main Markdown files into canonical syntax (in place!) with markdownfmt.
# XXX This is aggressive so we haven't been running. See also
# https://github.com/shurcooL/markdownfmt/issues?utf8=%E2%9C%93&q=is%3Aopen%20author%3Ajlevy%20
set -e -u -o pipefail

16
admin/reformat-gentle.sh Executable file
View file

@ -0,0 +1,16 @@
#!/bin/bash
# Gently fix common Markdown formatting errors. Should be minimally invasive.
set -e -u -o pipefail
hash repren >/dev/null 2>&1 || {
echo >&2 "repren missing: Install https://github.com/jlevy/repren and re-run"
exit 1
}
cd $(dirname $0)/..
# Extra spaces following a bullet replaced by tab per mkdownfmt convention.
# Leave other stuff alone.
repren --from '^(\s*)([-*])(\s* +\s*)' --to '\1\2\t' README.md CONTRIBUTING.md