2 package IkiWiki::Plugin::format;
9 hook(type => "preprocess", id => "format", call => \&preprocess);
19 if (! defined $format || ! defined $text) {
20 error(gettext("must specify format and text"));
22 elsif (! exists $IkiWiki::hooks{htmlize}{$format}) {
23 error(sprintf(gettext("unsupported page format %s"), $format));
26 return IkiWiki::htmlize($params{page}, $params{destpage}, $format,
27 IkiWiki::preprocess($params{page}, $params{destpage}, $text));