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,
- Select any text.
- Press
Shift-Cmd-{to convert “Humane Text” to XHTML. - 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
