[TxMt] MultiMarkdown in TextMate

Robert M. Ullrey robert_ullrey at mac.com
Wed Apr 5 20:38:34 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks Mark.

Works great.



On Apr 4, 2006, at 2:41 PM, Mark Eli Kalderon wrote:

> In case anyone is interested, I followed Brad's lead and created  
> the following command for generating rtf from markdown:
>
> Save: Nothing
>
> Command(s):
> # first figure out a name for the result
> NAME="${TM_FILENAME:-untitled}"
> BASENAME="${NAME%.*}"
> DST="/tmp/$BASENAME"
>
> MultiMarkdown.pl "$NAME" | SmartyPants.pl > "$DST.html"
>
> /usr/bin/textutil -convert rtf - extension rtf -font Times - 
> fontsize 11 "$DST.html"
>
> open -a TextEdit.app "$DST.rtf"
>
> Input: Selected Text or Document
>
> Output: Discard
>
> One limitation---textutil won't generate rtf documents with images.
>
> All the best, Mark
> _________________
> Mark Eli Kalderon
> Department of Philosophy
> University College London
> Gower Street
> London WC1E 6BT
>
> Dept webpage: http://www.ucl.ac.uk/philosophy
> Personal wepage: http://www.kalderon.demon.co.uk
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFENCrL0ZwlS5OIzRcRAguAAJ4jYd1OkerP+CDtRxVdFdF7R/ZzOQCfRYJt
bJ7lu9CxNqrqaZ2qlprqGB0=
=umYE
-----END PGP SIGNATURE-----



More information about the textmate mailing list