# automatically convert md file to pdf

#### rexwex

24 Jan, 2020 07:48 PM

Hello!

Unfortunately I cannot code / use apple script, so I am not able to realize the following workflow:

I use sublime text to create memos in markdown. I would like to convert these memos automatically into PDFs (using the header functions of marked). Is there a simple way that I can use e.g. Hazel or DevonThink to send a markdown file (e.g. if it contains #finished) to marked in the background and have marked convert it to a PDF. Then marked should save this PDF-file and I let Hazel monitor the folder, which then checks the PDFs for other keywords and moves them automatically to defined folders. Could someone help me with this? Is it possible to somehow realize that? Thank you very much in advance.

Best,
Robert

1. Support Staff Posted by Brett on 24 Jan, 2020 08:00 PM

Marked does not have any export automation capabilities. In order to do
what you're looking for, you'd need to set up a system using Pandoc and
various command line PDF utilities. It's not impossible, but it's not
simple (and unfortunately well beyond what I can offer in a Marked
support forum).

-Brett

2. Posted by rexwex on 25 Jan, 2020 05:24 AM

The funny thing is, I already had this workflow many years ago with the help of very nice users from the MacPowerUsersForum (then still at Google+). But in autumn I had to replace my MacBook and unfortunately I didn't have enough notes about how i set up pandoc (or rather I no longer understand them), so I couldn't set it up on the new Macbook the way it was needed for my workflow. Now I thought I didn't want such a complicated solution in the future again and tried to use marked, because there are such great settings for. well maybe i will try my luck again on the new MPU forum

thx!

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

### »

#### Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

# Keyboard shortcuts

### Generic

? Show this help Blurs the current field

### Comment Form

r Focus the comment reply box Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

## Recent Discussions

 21 Feb, 2020 11:32 PM Option to use MathJax 3? 20 Feb, 2020 03:12 PM Regular crashes 13 Feb, 2020 09:22 PM Markdown Formatting 11 Feb, 2020 11:53 AM Custom themes not working 10 Feb, 2020 06:48 PM KaTex Preview Update

## Recent Articles

 Using JavaScript in Marked Custom CSS: Writing custom CSS for Marked License code has already been utilized Highlight sentences longer than a certain number of words How do I retrieve a lost license (direct version)