<?xml version="1.0" encoding="utf-8"?>
<!-- generator="Blooki/0.4803" -->
<rdf:RDF
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
  xmlns:admin="http://webns.net/mvcb/"
  xmlns:cc="http://web.resource.org/cc/"
  xmlns="http://purl.org/rss/1.0/"
>

<channel rdf:about="http://blooki.org/development/markdown-integration.rdf/">
  <title>Blooki</title>
  <link>http://blooki.org/development/markdown-integration.rdf/</link>
  <description>Grow what you know</description>
  <dc:language>en</dc:language>
  <dc:creator>Paul Kulchenko</dc:creator>
  <dc:date>2004-09-25T19:11:00Z</dc:date>
  <admin:generatorAgent rdf:resource="http://www.blooki.org/" />

  <items>
    <rdf:Seq>
      <rdf:li rdf:resource="development/markdown-integration"/>
    </rdf:Seq>
  </items>
</channel>


  <item rdf:about="http://blooki.org/development/markdown-integration.rdf/development/markdown-integration">
    <title>Markdown Integration</title>
    <link>http://blooki.org/development/markdown-integration.rdf/development/markdown-integration</link>
    <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>
    <dc:subject>development/</dc:subject>
    <dc:date>2004-09-25T19:11:00Z</dc:date>
  </item>


</rdf:RDF>
