Convert markdown to pdf on mac

chris (2014-09-24 19:41:47)
10297 views
0 replies
Need a quick way on a mac to convert markdown to pdf? If you want a very quick setup which does not require latex (which can be a PITA to set up), try this technique using textmate to create your mardown source, then marked to convert over to html and finally use wkhtmltopdf to do the pdf conversion. First install node, then install marked and wkhtmltopdf as follows:

sudo npm -g install marked
sudo npm -g install wkhtmltopdf

Then convert the .md file to html
marked retro.md -o output.html

and finally convert the html to pdf
wkhtmltopdf output.html retro32.pdf
comment