From 39056453424dcb7e01f69c502192e45604d1fe84 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 3 Aug 2008 19:35:35 -0400 Subject: add plugin safe/rebuild info (part 3 of 3) --- IkiWiki/Plugin/textile.pm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'IkiWiki/Plugin/textile.pm') diff --git a/IkiWiki/Plugin/textile.pm b/IkiWiki/Plugin/textile.pm index 208f295d2..bbd282f0c 100644 --- a/IkiWiki/Plugin/textile.pm +++ b/IkiWiki/Plugin/textile.pm @@ -10,9 +10,18 @@ use IkiWiki 2.00; use Encode; sub import { #{{{ + hook(type => "getsetup", id => "textile", call => \&getsetup); hook(type => "htmlize", id => "txtl", call => \&htmlize); } # }}} +sub getsetup () { #{{{ + return + plugin => { + safe => 1, + rebuild => 1, # format plugin + }, +} #}}} + sub htmlize (@) { #{{{ my %params=@_; my $content = decode_utf8(encode_utf8($params{content})); -- cgit v1.2.3