diff --git a/Makefile b/Makefile index 4e71412e..9c77ee66 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ clean: rm -rf build format: - find . -type f -name '*.md' | xargs -IX pandoc -o X --wrap=preserve -t markdown+pipe_tables-multiline_tables-grid_tables X + find . -type f -name '*.md' -exec ./scripts/format.sh {} ';' images: $(IMG_EPSS) $(IMG_PNGS) diff --git a/scripts/format.sh b/scripts/format.sh new file mode 100755 index 00000000..05430b90 --- /dev/null +++ b/scripts/format.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +diff $1 <(pandoc --wrap=preserve -t markdown+pipe_tables-multiline_tables-grid_tables $1) | \ + patch $1 -