use warnings;
use strict;
use IkiWiki 2.00;
-use IkiWiki::Plugin::inline;
-use IkiWiki::Plugin::mdwn;
-use CGI 'escapeHTML';
use constant PLUGIN => "smcvpostcomment";
use constant PREVIEW => "Preview";
hook(type => "htmlize", id => "_".PLUGIN,
call => \&IkiWiki::Plugin::mdwn::htmlize);
IkiWiki::loadplugin("inline");
+ IkiWiki::loadplugin("mdwn");
+} # }}}
+
+sub htmlize { # {{{
+ eval { use IkiWiki::Plugin::mdwn; };
+ error($@) if ($@);
+ return IkiWiki::Plugin::mdwn::htmlize(@_)
} # }}}
sub getsetup () { #{{{
my $posts = '';
unless (defined $params{inline} && !IkiWiki::yesno($params{inline})) {
+ eval { use IkiWiki::Plugin::inline; };
+ error($@) if ($@);
my @args = (
pages => "internal($params{page}/_comment_*)",
template => PLUGIN . "_display",