2 # By mazirian; GPL license
5 package IkiWiki::Plugin::textile;
13 hook(type => "getsetup", id => "textile", call => \&getsetup);
14 hook(type => "htmlize", id => "txtl", call => \&htmlize);
17 sub getsetup () { #{{{
21 rebuild => 1, # format plugin
25 sub htmlize (@) { #{{{
27 my $content = decode_utf8(encode_utf8($params{content}));
29 eval q{use Text::Textile};
30 return $content if $@;
31 return Text::Textile::textile($content);