]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - IkiWiki/Plugin/wikitext.pm
instead of over and over. Typical speedup is ~4x. Max possible speedup:
[git.ikiwiki.info.git] / IkiWiki / Plugin / wikitext.pm
1 #!/usr/bin/perl
2 # WikiText markup
3 package IkiWiki::Plugin::wikitext;
5 use warnings;
6 use strict;
7 use IkiWiki;
8 use Text::WikiFormat;
10 sub import { #{{{
11         hook(type => "htmlize", id => "wiki", call => \&htmlize);
12 } # }}}
14 sub htmlize (@) { #{{{
15         my %params=@_;
16         my $content = $params{content};
18         return Text::WikiFormat::format($content, undef, { implicit_links => 0 });
19 } # }}}
21 1