2009/10/22 Michel Fortin <span dir="ltr"><<a href="mailto:michel.fortin@michelf.com">michel.fortin@michelf.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Le 2009-10-22 à 13:29, Joonas Pulakka a écrit :<div><div></div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I'm now puzzled which is the correct order to apply the filters. SmartyPants<br>
first and Markdown then (as above), or the other way round (as you suggested<br>
a couple of months ago :-)?<br>
<a href="http://six.pairlist.net/pipermail/markdown-discuss/2009-September/001647.html" target="_blank">http://six.pairlist.net/pipermail/markdown-discuss/2009-September/001647.html</a><br>
</blockquote>
<br></div></div>
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.<br>
<br>
This is documented in the PHP Markdown Readme:<br></blockquote><div><br></div><div>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...</div>
<div><br></div><div>Best Regards,</div><div>Joonas</div></div>