Order of Markdown and SmartyPants filters (was: Re: Markdown Support in Drupal6.14?)
joonas.pulakka at iki.fi
Fri Oct 23 02:36:56 EDT 2009
2009/10/22 Michel Fortin <michel.fortin at michelf.com>
> Le 2009-10-22 à 13:29, Joonas Pulakka a écrit :
>> I'm now puzzled which is the correct order to apply the filters.
>> first and Markdown then (as above), or the other way round (as you
>> a couple of months ago :-)?
> Markdown, then Smartypants. If you run Smartypants first, it'll convert
> characters like quotes to curly ones in link definitions and code samples,
> and the result won't be processed correctly by the Markdown filter.
> Smartypants wants HTML-formatted input, not Markdown-formatted input.
> This is documented in the PHP Markdown Readme:
Thanks, it's clear now! Including that in SmartyPants documentation too
might be a good idea, since some people (well, I at least) first get
acquainted with Markdown and later want to add SmartyPants on top of it, and
then keep looking for instructions from SmartyPants documentation...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Markdown-Discuss