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, longname => "Textile");
21 rebuild => 1, # format plugin
28 my $content = decode_utf8(encode_utf8($params{content}));
30 eval q{use Text::Textile};
31 return $content if $@;
32 return Text::Textile::textile($content);