* ikiwiki can now download and aggregate feeds with its new aggregate
[ikiwiki.git] / IkiWiki / Plugin / wikitext.pm
1 #!/usr/bin/perl
2 # WikiText markup
3 package IkiWiki::Plugin::wikitext;
4
5 use warnings;
6 use strict;
7 use Text::WikiFormat;
8
9 sub import { #{{{
10         IkiWiki::hook(type => "htmlize", id => "wiki", call => \&htmlize);
11 } # }}}
12
13 sub htmlize ($) { #{{{
14         my $content = shift;
15
16         return Text::WikiFormat::format($content, undef, { implicit_links => 0 });
17 } # }}}
18
19 1