Smarty Pants

10/30/2005 15:23:09

Another project by John Gruber, SmartyPants automatically generates smart quotes, ellipsis, and en- and em- dash characters.

I’ve never been too concerned with this for web pages (it still causes too many problems with copy and paste), but I do like it when generating LaTeX output from [[My Markdown Workflow]].

It is now supported in my XSLT stylesheets for [[Markdown and XML]]. To use it, simply pass the output of the MultiMarkdown.pl command through SmartyPants.pl. The XHTML output will now contain “smart” typography. Then, when you use one of the XSLT style-sheets, the smart characters are converted into proper LaTeX code. Makes it very easy to create more “typographically correct” pdf files.

Similar Pages