dotfiles/bin/.bin/md2pdf

6 lines
126 B
Plaintext
Raw Normal View History

#!/bin/sh
MDFILE="$1"
[ -r $MDFILE -a -f $MDFILE ] && pandoc $MDFILE -t html -o ${MDFILE[@]/%md/pdf} || echo "what a freak"