diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-13 02:22:42 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-13 02:22:42 +0000 |
commit | 1e5c7926cf8f54e25bb6c9c5f3b3be5e8667b47b (patch) | |
tree | 136cea2ddc6e9e103980a177775e804cde3a7bbb /ikiwiki | |
parent | 710a8b2d8f5e014699c8c06caa5e3fe5ffd1e112 (diff) |
hide markdown goo away, it also speeds up the cgis a bit
Diffstat (limited to 'ikiwiki')
-rwxr-xr-x | ikiwiki | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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); } |