]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/wikitext.pm
* Add an img plugin, based on Christian Mock's img plugin, but stripped
[ikiwiki.git] / IkiWiki / Plugin / wikitext.pm
index 9fa87dafb1c06902bdcc58e230f7c53f2325fe94..95182f870c671a8c758e35231df93494464ad889 100644 (file)
@@ -8,11 +8,12 @@ use IkiWiki;
 use Text::WikiFormat;
 
 sub import { #{{{
-       IkiWiki::hook(type => "htmlize", id => "wiki", call => \&htmlize);
+       hook(type => "htmlize", id => "wiki", call => \&htmlize);
 } # }}}
 
-sub htmlize ($) { #{{{
-       my $content = shift;
+sub htmlize (@) { #{{{
+       my %params=@_;
+       my $content = $params{content};
 
        return Text::WikiFormat::format($content, undef, { implicit_links => 0 });
 } # }}}