abstreet/format_md.sh

8 lines
231 B
Bash
Raw Normal View History

#!/bin/bash
set -e
~/npm/node_modules/prettier/bin-prettier.js --write --prose-wrap=always $1
# Format everything:
# for x in `find book/src/ | grep '\.md'`; do ./format_md.sh $x; done; git checkout book/src/project/CHANGELOG.md