Jun's Blog

Output, activities, memo and etc.

Convert Markdown file to PDF file on Mac (2)

Previously I used markdown-pdf. But I found another tool to convert GitHub style PDF mdpdf [1]. And I would prefer it. junaruga.hatenablog.com

mdpdf

Install

$ npm install mdpdf
$ which mdpdf
/Users/jun.aruga/node_modules/.bin/mdpdf

Usage

$ mdpdf README.md

README.pdf is created on the same directory with README.md.

Atom plugin markdown-pdf

This tool is also cool. The Atom [2] plugin [3] to convert markdown to PDF.

Install markdown-pdf plugin from Atom editor. Then select menu: Packages -> Markdown to PDF -> Convert in a markdown file.

References