>>>>>>>> Only code change I'd suggest is using `htmllink` rather than
>>>>>>>> generating a wikilink.
->>>>>>>>> Yeah - that would make sense. Will do. -- [[Will]]
+>>>>>>>>> Yeah - that would make sense. done. -- [[Will]]
#!/usr/bin/perl
# Ikiwiki listpreprocessors plugin.
my @pluginlist;
- if (! defined $params{generated}) {
+ if (defined $params{generated}) {
@pluginlist = @fullPluginList;
} else {
@pluginlist = @earlyPluginList;
my $result = '<ul class="listpreprocessors">';
foreach my $plugin (@pluginlist) {
- $result .= '<li class="listpreprocessors">[[' . $config{plugin_description_dir} . $plugin . ']]</li>';
+ $result .= '<li class="listpreprocessors">';
+ $result .= htmllink($params{page}, $params{destpage}, IkiWiki::linkpage($config{plugin_description_dir} . $plugin));
+ $result .= '</li>';
}
$result .= "</ul>";
-
- return IkiWiki::preprocess($params{page}, $params{destpage},
- IkiWiki::filter($params{page}, $params{destpage}, $result));
+
+ return $result;
} # }}}
1