<?xml version="1.0" encoding="utf-8"?>
<!-- generator="Blooki/0.4803" -->
<feed version="0.3" xmlns="http://purl.org/atom/ns#"  xml:lang="en">
  <title mode="escaped" type="text/html">Blooki</title>
  <tagline mode="escaped" type="text/html">Grow what you know</tagline>
  <link rel="alternate" type="text/html" href="http://blooki.org/development/markdown-integration.atom/"/>
  <modified>2004-09-25T19:11:00Z</modified>
  <author><name>Paul Kulchenko</name></author>


  <entry>
    <title>Markdown Integration</title>
    <content type="text/html" mode="escaped">&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;</content>
    <link rel="alternate" type="text/html" href="http://blooki.org/development/markdown-integration.atom/development/markdown-integration"/>
    <id>http://blooki.org/development/markdown-integration.atom/development/markdown-integration</id>
    <issued>2004-09-25T19:11:00Z</issued>
    <modified>2004-09-25T19:11:00Z</modified>
    
  </entry>


</feed>
