]> sipb.mit.edu Git - ikiwiki.git/commitdiff
hide markdown goo away, it also speeds up the cgis a bit
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Mon, 13 Mar 2006 02:22:42 +0000 (02:22 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Mon, 13 Mar 2006 02:22:42 +0000 (02:22 +0000)
ikiwiki

diff --git a/ikiwiki b/ikiwiki
index 729f8628b4d6bcd61ae3da2a99cf66c97f7f8fc0..de71414ede7e6a33d2d565bfaf0b31edebb589cc 100755 (executable)
--- a/ikiwiki
+++ b/ikiwiki
@@ -8,10 +8,6 @@ use Memoize;
 use File::Spec;
 use HTML::Template;
 use Getopt::Long;
-BEGIN {
-       $blosxom::version="is a proper perl module too much to ask?";
-       do "/usr/bin/markdown";
-}
 
 my (%links, %oldlinks, %oldpagemtime, %renderedfiles, %pagesources);
 
@@ -254,6 +250,11 @@ sub htmlize ($$) { #{{{
        my $type=shift;
        my $content=shift;
        
+       if (! $INC{"/usr/bin/markdown"}) {
+               $blosxom::version="is a proper perl module too much to ask?";
+               do "/usr/bin/markdown";
+       }
+       
        if ($type eq '.mdwn') {
                return Markdown::Markdown($content);
        }