Mac Services: Filter through Markdown
On the shell you can run:
pbcopy | mmd | pbpaste
to get text (Markdown) copied to the clipboard converted to HTML easily.
This procedure can be automated with Automator:
- Create a new service.
- Service receives selected
text
inany application
andreplaces selected text
. - Add Action named Run Shell Script
- Enter the following command into the text field, e.g.
/usr/local/bin/mmd
- Save the Service and give it a descriptive name, e.g. Filter through Markdown.
Now you can filter text through Markdown in almost any application using Services → Filter through Markdown.