<?xml version="1.0" encoding="utf-8"?>
<!-- generator="Blooki/0.4803" -->
<rss version="2.0">
  <channel>
    <title>Blooki</title>
    <link>http://blooki.org/development/markdown-integration.rs2/</link>
    <description>Grow what you know</description>
    <language>en</language>
    <copyright>Copyright 2010</copyright>
    <lastBuildDate>Sat, 25 Sep 2004 19:11:00 GMT</lastBuildDate>
    <pubDate>Sat, 25 Sep 2004 19:11:00 GMT</pubDate>
    <generator>http://www.blooki.org/</generator>
    <ttl>60</ttl>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs> 


  <item>
    <title>Markdown Integration</title>
    <description>&lt;p&gt;Even though Blooki currently provides &lt;a href="http://search.cpan.org/~tomi/Text-Textile-0.6/"&gt;Textile&lt;/a&gt;, Tiki and ConvertBreaks filters, I've been thinking about adding &lt;a href="http://daringfireball.net/2004/08/markdown_10"&gt;Markdown&lt;/a&gt; as several people asked me about it. Markdown is a perl module, so I didn't expect any troubles integrating it with Blooki. There were few challenges though both related to the fact that Markdown is not distributed as a Perl module; instead it's distributed as a Perl script.&lt;/p&gt;

&lt;p&gt;First, since it can run as a script and as a plugin for MovableType and Blosxom it checks if either of those is avaiable and if not, it waits for input to be processed. This is easily fixable by changing &lt;code&gt;defined($blosxom::version)&lt;/code&gt; (line 184 in Markdown 1.0) to something like &lt;code&gt;(caller(0))[7]&lt;/code&gt;, which returns true if the script was called using use/require/do.&lt;/p&gt;

&lt;p&gt;Second, the old IfModule directive in a config file only processesed "real" modules/packages, and not files. So I extended it to accept files and Perl versions (as Markdown requires Perl 5.6 and later). Now the fragment that loads Markdown looks like the following: &lt;/p&gt;



&lt;pre&gt;&lt;code&gt;  &amp;lt;IfModule 5.006 Markdown.pl&amp;gt; # Markdown requires Perl 5.006
    AddModule Markdown
  &amp;lt;/IfModule&amp;gt;
&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;This goes into Blooki 0.48.&lt;/p&gt;</description>
    <guid>http://blooki.org/development/markdown-integration.rs2/development/markdown-integration</guid>
    <category>development/</category>
    <pubDate>Sat, 25 Sep 2004 19:11:00 GMT</pubDate>
  </item>


  </channel>
</rss>
