Export a whole folder of documents to PDF

markedapp.com's Avatar

markedapp.com

04 Jan, 2016 01:50 AM

Has anyone already gone to the trouble of writing a script that will export a whole folder of Markdown files to PDF using Marked?

If so, I would greatly appreciate the script for my workflow.

  1. Support Staff 1 Posted by Brett on 04 Jan, 2016 05:05 PM

    Brett's Avatar

    To separate PDFs (one per file)?

    -Brett

  2. 2 Posted by markedapp.com on 05 Jan, 2016 12:04 PM

    markedapp.com's Avatar

    Yes to separate files. Actually I'd even settle for one script via automation if I could pass the name in.

  3. Support Staff 3 Posted by Brett on 05 Jan, 2016 03:54 PM

    Brett's Avatar

    Marked itself doesn't have the automation features required for this,
    but you could do it with any of the command line processors by writing
    to HTML (with appropriate template) and then passing to a tool like
    wkpdf to generate the PDF file from the resulting HTML. MultiMarkdown
    has a tool for doing this directly (mmd2pdf) and can handle batch input.

    -Brett

  4. 4 Posted by markedapp.com on 06 Jan, 2016 01:21 AM

    markedapp.com's Avatar

    Brett, thanks for taking the time to reply. I appreciate it. Please take my interest as a feature request in a future version. Thanks!

  5. markedapp.com closed this discussion on 06 Jan, 2016 01:21 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac