News for hackers. Stuff that matters.
Re:Show HN: GitPrint.com – A site to easily print Markdown f... by dfc on Sunday March 16, 2014 @05:28PM (#7411386)
I totally agree: pandoc is amazing, this is just a weekend project that is a solution in search of a problem. I can just highlight github's markdown pretty print and tell iceweasel to print selection and select save as pdf instead of sending to cupsd queue.

To be clear this project:

  1. Converts a certain unknown basic markdown syntax to html 
     (iff the filename is something that it recognizes[^1])
  2. adds css for Merriweather, Open Sans, Dejavu Mono and a silly iconfont
     (I prefer pandoc's pygments syntax highlighting over goofy icon)
  3. renders html->pdf using webkit by way of phantomjs. 
Pandoc to pdf at ROFLSCALE? Speculate no more:

  $ pandoc -s -S -t html5 -o out.html README.md 
  $ wkhtmltopdf out.html out.pdf 
or

  $ pandoc -s -S -t html5 -o out.html README.md  
  $ phantomjs rasterize.js  ./out.html out.pdf Letter


To be honest using pdflatex is just as fast as phantomjs/wkhtmltopdf.

The type checking joke is that I never compared gitit to pandoc. So don't worry about responding to any comment you think I made regarding gitit and pandoc.

[^1]: https://gitprint.com/jgm/pandoc/master/README = "Something went wrong! Couldn't process https://raw.github.com/jgm/pandoc/master/README/master/READM... = ROFLSATIRE

Re:Show HN: GitPrint.com – A site to easily print Markdown f... by 616c on Monday March 17, 2014 @12:06AM (#7412977)
The Gitprint error is cute. I did not have that when I tried. I guess more indication I will stick to my own tools. As for everything else, thanks for the clarification.