News for hackers. Stuff that matters.
Re:Get Your Book, Make It Free by alias_neo on Friday May 17, 2019 @12:18PM (#19940998)
How does pandoc compare to grip? I often need to render Markdown to PDF and find Grip is _ok_ but not great, and if I'm not mistaken it renders Github-side, where I'd prefer offline.
Re:Get Your Book, Make It Free by homarp on Friday May 17, 2019 @12:44PM (#19941276)
for those who might wonder, like me: https://github.com/joeyespo/grip a command-line server application written in Python that uses the GitHub markdown API to render a local readme file.
Re:Get Your Book, Make It Free by alias_neo on Sunday May 19, 2019 @05:49AM (#19952427)
Thanks, I should have linked grip!
Re:Get Your Book, Make It Free by umvi on Friday May 17, 2019 @12:30PM (#19941131)
I've never tried grip, but actually my pipeline is this:

markdown -> docx (pandoc)

docx -> kindle (calibre)

I use both pandoc and calibre as offline CLIs, and the resulting kindle book has a nicely formatted table of contents with correct chapter markers, etc.

Re:Get Your Book, Make It Free by trnglina on Saturday May 18, 2019 @04:53AM (#19946406)
I haven't used grip, but pandoc primarily (exclusively?) generates PDFs through LaTeX. It's great for quick, programmable, PDF generation, but personally, I usually prefer using pandoc to go markdown -> ICML -> InDesign.