I often would like to paste my markdown into an email and have it be rendered into something pretty. This is something airmail did automatically, but the Uni won’t support that anymore.
So what to do with Outlook? I could always convert to docx file using pandoc and then cut and paste the contents. Bit of a pain for something short.
So here’s a terminal snippet that copies the clipboard (in macs anyway) and converts it on the fly and puts in back in the clipboard, so when you paste now you get rich text format, just the thing for a swanky email.
pbpaste | \pandoc --from markdown --to html | \textutil -convert rtf -stdin -stdout -format html | \pbcopy -Prefer rtf