home > web > moreonmarkdown.html

Sunday, September 18th, 2005

More on Markdown & SmartyPants

Some more tidbits on John Gruber’s tools

To run as an OS X Service,

Install HumaneText.service from here. Then,

  1. Select any text.
  2. Press Shift-Cmd-{ to convert “Humane Text” to XHTML.
  3. Press Shift-Cmd-} to convert XHTML to “Humane Text”.

Note that this runs both Markdown & SmartyPants on your text.

To run integrated (via command—line pipes) with SmartyPants,

Run Markdown first, then post-process the html with SmartyPants to make smart-quotes, dashes, and ellipses look nice. E.g.:

% perl Markdown.pl foo.text | perl SmartyPants.pl > foo.html

/web   〆   permalink