From 4da01f4b902db6a6ad03ef96575f6f5929e07bf6 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Tue, 24 Sep 2019 10:08:43 -0400 Subject: [PATCH] add markdown formatting function --- fish/.config/fish/functions/mdfmt.fish | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 fish/.config/fish/functions/mdfmt.fish diff --git a/fish/.config/fish/functions/mdfmt.fish b/fish/.config/fish/functions/mdfmt.fish new file mode 100644 index 0000000..f260482 --- /dev/null +++ b/fish/.config/fish/functions/mdfmt.fish @@ -0,0 +1,9 @@ +function mdfmt + for md in $argv + pandoc \ + -f markdown+yaml_metadata_block \ + -t markdown+yaml_metadata_block \ + --atx-headers \ + -o $md $md + end +end