From dd255df412fe8447281dbcd0751f98658a1a2f41 Mon Sep 17 00:00:00 2001 From: Chris Bednarski Date: Wed, 22 Jul 2015 19:28:03 -0700 Subject: [PATCH] Add pandoc magical markdown reformatter --- website/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/website/Makefile b/website/Makefile index 100a4dbf9..1cc81038c 100644 --- a/website/Makefile +++ b/website/Makefile @@ -11,4 +11,7 @@ build: init format: bundle exec htmlbeautifier -t 2 source/*.erb - bundle exec htmlbeautifier -t 2 source/layouts/*.erb \ No newline at end of file + bundle exec htmlbeautifier -t 2 source/layouts/*.erb + pandoc -v > /dev/null && find . -iname "*.html.markdown" | xargs -I{} bash -c "pandoc -r markdown -w markdown --tab-stop=2 --atx-headers -s --columns=80 {} > {}.new"\; || true + pandoc -v > /dev/null && find . -iname "*.html.markdown" | xargs -I{} bash -c "mv {}.new {}"\; || true +