X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/d9c118dbf1753abcbf081f532aecfe8cb6ce7de7..1aac0b5a60b8445422f44325870cbf6c28c57196:/IkiWiki/Plugin/wikitext.pm?ds=inline diff --git a/IkiWiki/Plugin/wikitext.pm b/IkiWiki/Plugin/wikitext.pm index 8b8cbe75e..5c46c565c 100644 --- a/IkiWiki/Plugin/wikitext.pm +++ b/IkiWiki/Plugin/wikitext.pm @@ -4,14 +4,16 @@ package IkiWiki::Plugin::wikitext; use warnings; use strict; +use IkiWiki; use Text::WikiFormat; 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 }); } # }}}