summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-10-25 23:00:32 -0400
committerJoey Hess <joey@kitenet.net>2010-10-25 23:00:32 -0400
commit5c6eb167b8e69e0607330f06c893a73dfe1c675a (patch)
tree0dd4c3dae1569bdbf74c3130d6c2dbaf6c164370 /IkiWiki
parent2076ed597c02bfede9063c3d40f4b855d4e8f8b8 (diff)
highlight: Ensure that other, more-specific format plugins, like txt are used in preference to this one in case of ties.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/highlight.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/highlight.pm b/IkiWiki/Plugin/highlight.pm
index 5674f0b4a..872537c72 100644
--- a/IkiWiki/Plugin/highlight.pm
+++ b/IkiWiki/Plugin/highlight.pm
@@ -10,8 +10,8 @@ sub import {
hook(type => "getsetup", id => "highlight", call => \&getsetup);
hook(type => "checkconfig", id => "highlight", call => \&checkconfig);
# this hook is used by the format plugin
- hook(type => "htmlizeformat", id => "highlight", call =>
- \&htmlizeformat);
+ hook(type => "htmlizeformat", id => "highlight",
+ call => \&htmlizeformat, last => 1);
}
sub getsetup () {
@@ -74,6 +74,7 @@ sub checkconfig () {
},
longname => sprintf(gettext("Source code: %s"), $file),
@opts,
+ last => 1,
);
}
}