]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/wikitext.pm
* Change htmlize, format, and sanitize hooks to use named parameters.
[ikiwiki.git] / IkiWiki / Plugin / wikitext.pm
index 9fa87dafb1c06902bdcc58e230f7c53f2325fe94..5c46c565cc7b95100c3124fa9a3c496bb4afc502 100644 (file)
@@ -11,8 +11,9 @@ sub import { #{{{
        IkiWiki::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 });
 } # }}}