Skip to content

Instantly share code, notes, and snippets.

@abelardojarab
Created January 10, 2018 01:37
Show Gist options
  • Select an option

  • Save abelardojarab/69f73c895e79a5d6b2a6336634d8053d to your computer and use it in GitHub Desktop.

Select an option

Save abelardojarab/69f73c895e79a5d6b2a6336634d8053d to your computer and use it in GitHub Desktop.
convert Markdown to PDF using stylesheet (.css)

Install globally to use from the command line.

npm install mdpdf -g

Example usage:

mdpdf README.md - Simple convert using GitHub Markdown CSS and some additional basic stylings.
mdpdf README.md --style styles.css --header header.hbs --hHeight 22 - Convert with custom styling with a header of height 22mm.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment