I consider the Markdown plugin to be a necessary addition to each and every EE site that I develop, and so I’ve taken it upon myself to update the existing plugin to use PHP Markdown Extra by Michel Fortin. This should be used as a replacement for the current plugin, rather than an additional one.
If you’re unfamiliar with the benefits that PHP Markdown Extra provides, please check out http://www.michelf.com/projects/php-markdown/extra/. To sum it up, here are the new features:
There shouldn’t be any issues with the plugin, since all I’ve done is overwritten the old Markdown code with the new version, and changed some of the text in the plugin information section. Enjoy!
Update: 10/10/08 - Plugin now uses Markdown Extra 1.2.2. I also stripped out some extra code that was only used for WordPress compatibility. And, since the forum will not let me upload the file due to the “invalid content for its MIME type” error, you will need to download the file from the URL above.
Rather than using the tags in the template, you may want to try setting markdown as the default formatting option for the {body} field. See here:
http://expressionengine.com/docs/cp/admin/weblog_administration/custom_fields_edit.html
You’ll need to click the Edit List button and make sure that Markdown is turned on. Then confirm the changes and before you save the custom field, check the box next to “Update all existing section entries with your new formatting choice?”
You should be able to use Markdown formatting without using the {exp:markdown} tags in the template.
I love the fact that EE let’s you choose your desired formatting. It’s such a flexible feature.
However, I still can’t manage to type in links, the official way (http://daringfireball.net/projects/markdown/syntax#link )
eg. [Google Homepage] (http://www.google.com)
should render as:
Hi Brian, thanks for your answer.
I did check and tried that setting. However, if I turn it off, EE doesn’t render anything at all (except my non-link related Markdown tags, these are rendered OK). The markdown-link just appears as plain text:
[Google Homepage] (http://www.google.com)
I have tried putting the {exp:markdown}{/exp:markdown} tags around my body, but that didn’t change a thing either.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.