markdown-here icon indicating copy to clipboard operation
markdown-here copied to clipboard

What would it take to make MDH work in Apple Mail?

Open slhck opened this issue 11 years ago • 28 comments

As the title says, I'd be interested to know whether it'd be possible to implement Markdown Here for Apple Mail as a plugin.

I use Apple Mail primarily for my work e-mails, most of which include pre- and code-formatted text.

I'm not an Objective C programmer, so I couldn't even give an estimate here, and it appears that you cannot simply extend Apple Mail since its API is undocumented.

slhck avatar Jun 24 '13 10:06 slhck

I'm marking this as low priority since it looks like it would involve a complete rewrite in a different language using undocumented APIs.

adam-p avatar Aug 28 '13 11:08 adam-p

+1 for this. May be it could be written as a system service like this one if writing this way doesn't require the knowledge of Apple Mail API. I really like to get GFM working so I can use syntax highlighted code blocks.

arangamani avatar Sep 30 '13 18:09 arangamani

+1 for an Apple Mail version of Markdown Here

jdashton avatar Feb 21 '14 17:02 jdashton

+1 for an Apple Mail version

kpytka avatar Oct 29 '14 17:10 kpytka

+1 for an Apple Mail version of Markdown Here :dancer:

spuyet avatar Nov 03 '14 15:11 spuyet

+1 for an Apple Mail version for Markdown Here

kameshsampath avatar Nov 05 '14 07:11 kameshsampath

+1 for this too!

apophenist avatar Mar 14 '15 13:03 apophenist

+1!

stephendolan avatar Sep 03 '15 01:09 stephendolan

+1 for an Apple Mail version of Markdown Here

chkwon avatar Oct 13 '15 17:10 chkwon

+1

iDevSpread avatar Oct 13 '15 18:10 iDevSpread

+1

CodeWarriorr avatar Oct 28 '15 16:10 CodeWarriorr

:+1:

Uko avatar Nov 09 '15 08:11 Uko

Could this be done as a documented and more generic “Action” App Extension instead of a plugin in 10.10+?

Crissov avatar Jan 08 '16 09:01 Crissov

Could this be done as a documented and more generic “Action” App Extension instead of a plugin in 10.10+?

Iv'e been wondering exactly the same thing…

danielbayley avatar Jan 08 '16 09:01 danielbayley

+1

petonic avatar Mar 08 '16 01:03 petonic

+1

juangamnik avatar Aug 01 '16 20:08 juangamnik

The alternative is to buy and use MailMate. It supports Markdown and is a pretty heavily customizable tool. Plus, the dev is awesome and very responsive. Not related to MailMate in any way except as a satisfied customer.

petonic avatar Aug 01 '16 21:08 petonic

MailMate could do with a UI makeover. Airmail has basic support for Markdown, and I think Polymail will soon too. Nylas N1 has a plugin for it which worked although is currently broken it will be fixed.

Ideally a native “Action” App Extension would work well with Apple Mail…

danielbayley avatar Aug 01 '16 21:08 danielbayley

+1!

jsl303 avatar Jun 15 '17 19:06 jsl303

+1

marc-medley avatar Jul 20 '17 19:07 marc-medley

+1

JayHoltslander avatar Nov 15 '17 17:11 JayHoltslander

+1

ZmingZinnia avatar Jun 12 '18 15:06 ZmingZinnia

+1

yongman avatar Jul 09 '18 11:07 yongman

Folks, instead of +1ing this issue, please just hit the 👍 button.

slhck avatar Jul 09 '18 11:07 slhck

Poor man's workaround given that Apple Mail API route is fraught with peril.

A keyboard shortcut that invokes an AppleScript (/JS) that copies the full text(/current selection) and pipes it through a Markdown to RTF filter (marked/pandoc -> textutil), placing the output into the clipboard (pbcopy) and pasting it back as rich text.

POC: given markdown text in the clipboard, pbpaste | marked | textutil -stdin -format html -convert rtf -stdout | pbcopy then paste back into the mail message.

No GUI and no revert capabilities, but better than nothing I guess?

lucianf avatar Oct 09 '18 12:10 lucianf

@lucianf this is great, and it works well in terminal. I can't seem to get this working in an Apple Script/Automator workflow though, and I've tried a few variations. Any chance you've solved this for new MacOS?

apophenist avatar Oct 10 '18 09:10 apophenist

+1 for an Apple Mail version

shiyuge avatar Nov 15 '18 07:11 shiyuge

Hi, is this somehow still a topic ? Thanks!

ManuelWIAS avatar Dec 03 '20 09:12 ManuelWIAS