Thursday, March 25, 2004


Markdown As An OS X Service


Gust’s HumaneText.service has been updated to rev 3 and supports Markdown natively, so my hack is no longer necessary.

I’m happy to report that it’s possible with fairly minimal effort to get Markdown.pl to function as a service in OS X. This makes Markdown functionality available inside of Cocoa text fields, which means that everything from Safari to Mail to SubEthaEdit to Stickies can benefit.

First download Gust’s HumaneText service.

By default, it’s configured to use PyTextile, but the package also includes ATX.

Install it, then, using Terminal, navigate to

~/Library/Services/HumaneText.service/Contents/Resources

Copy Markdown.pl to this directory. Make it executable with this command:

chmod 755 Markdown.pl

This is the directory that contains the text filters used by the HumaneText service. The service chooses which filter to invoke by means of a simple symlink. Delete the existing symlink:

rm filter

and recreate it, pointing to Markdown.pl

ln -s Markdown.pl filter

Tested under OS X 10.3.3.


:: Dave Walker 12:33 (EST/EDT) [+] ::

:: [/tech/computers/os/osx/applications]
:: tags:

:: Comments (2)

Comments:

Title: Markdown as an OS X Service

Date:

Response:
Very cool, going to have to check this out! From freeform goodness :: tech : computers : os : osx : applications : Markdown As An OS X Service : QUOTEI’m happy to report that it’s possible with fairly minimal...

drauh wrote:

Title:

Date:

Response:
He's updated it so that it pipes through Markdown and SmartyPants by default.



I never did it that way before.


valid html | css | rss | atom

browse happy