]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/mdwn.pm
* Work on firming up the plugin interface:
[ikiwiki.git] / IkiWiki / Plugin / mdwn.pm
index 2274fea72489b3256cd3d05ee9b0ba7f0dd82d42..e5228c3299c5f98b3b8ac8b3cda0b2d11d4e6ce5 100644 (file)
@@ -7,7 +7,7 @@ use strict;
 use IkiWiki;
 
 sub import { #{{{
-       IkiWiki::hook(type => "htmlize", id => "mdwn", call => \&htmlize);
+       hook(type => "htmlize", id => "mdwn", call => \&htmlize);
 } # }}}
 
 my $markdown_loaded=0;
@@ -26,7 +26,7 @@ sub htmlize (@) { #{{{
                eval q{use Markdown};
                if ($@) {
                        do "/usr/bin/markdown" ||
-                               IkiWiki::error("failed to load Markdown.pm perl module ($@) or /usr/bin/markdown ($!)");
+                               error("failed to load Markdown.pm perl module ($@) or /usr/bin/markdown ($!)");
                }
                $markdown_loaded=1;
                require Encode;