Skip to content

Instantly share code, notes, and snippets.

@photuris
Created January 18, 2011 19:40
Show Gist options
  • Save photuris/785001 to your computer and use it in GitHub Desktop.
Save photuris/785001 to your computer and use it in GitHub Desktop.
markdown2pdf
#!/usr/bin/env bash
FILENAME=`echo "$1" | cut -d'.' -f1`
markdown.pl $1 > $FILENAME.html 2> /dev/null
xhtml2pdf --quiet --css=/usr/local/share/xhtml2pdf.css -s $FILENAME.html 2> /dev/null
rm $FILENAME.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment