]> sipb.mit.edu Git - ikiwiki.git/blob - IkiWiki/Plugin/wikitext.pm
stop abusing titlepage for internal encoding (esp since it doesn't work)
[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