Skip to content

Instantly share code, notes, and snippets.

@jasonm23
Created January 31, 2011 05:56
Show Gist options
  • Save jasonm23/803692 to your computer and use it in GitHub Desktop.
Save jasonm23/803692 to your computer and use it in GitHub Desktop.
Use cupsfilter and RDiscount to convert Markdown text to PDF (via HTML)
t=$(mktemp -t preview); cat README.md | rdiscount > $t.html; cupsfilter $t.html > $t.pdf; open $t.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment