Skip to content

Instantly share code, notes, and snippets.

@Whatapalaver
Created September 6, 2018 11:27
Show Gist options
  • Save Whatapalaver/9e40c6fbb8f3bcdf97c8c41e86aa3bc3 to your computer and use it in GitHub Desktop.
Save Whatapalaver/9e40c6fbb8f3bcdf97c8c41e86aa3bc3 to your computer and use it in GitHub Desktop.
Converting GitHub markdown to pdf

How to convert your github cv to pdf

This technique produces a pdf document with clickable links from your GitHub readme (also works for any html page)

  1. Download and install wkhtmltopdf which is a command line tool
  2. Open your GitHub README.md in atom - edit as required .
  3. Preview the markdown in atom by pressing shift-ctrl-M
  4. Save this preview with the .html extension
  5. Open the html file in chrome
  6. Go back to the command line and cd into the relevant directory
  7. run the command wkhtmltopdf /paste_the_location_from_chrome_address_bar_here.html new_file_name.pdf
    So my example is wkhtmltopdf /Users/whatapalaver/Documents/GitHub/CV/cv.md.html wolff_cv.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment