Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 18 lines (10 sloc) 1.022 kb
7f98c39 Dr. Drang Added README.
authored
1 A PHP script and style file for generating rendered HTML from Markdown for pasting into mail messages. I use it instead of WYSIWYG editing in Rich Text mode because I'm so used to working in Markdown.
2
3 I run this from TextMate using the Mail Preview command:
4
5 <img class="ss" src="http://www.leancrew.com/all-this/images2010/tm-mail-preview.png" />
6
7 the text of the command is
8
9 php ~/mail-preview/mail-preview.php > ~/mail-preview/mail-preview.html
10 open ~/mail-preview/mail-preview.html
11
12 When invoked, this command passes the Markdown in the current document to the `mail-preview.php` script and generates a new `mail-preview.html` file, which is then opened in the default browser.
13
14 I then copy the text from the browser and paste it into either Mail.app or GMail's Compose field.
15
16 **Note:**
17 The script relies on some form of PHP Markdown (I use my own PHP Markdown Extra Math) and PHP SmartyPants to be on the local computer. The paths to these libraries are specified in Lines 3 and 4 of `mail-preview.php`.
18
Something went wrong with that request. Please try again.