aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/mdwn.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-10-26 11:56:42 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-10-26 11:56:42 -0400
commita2979b2b52eee47cc6d08274b5c6947aeaf9bfdc (patch)
tree73a5f847f558132b251a9d60f49da48c4f352c67 /IkiWiki/Plugin/mdwn.pm
parentf756d7e6de847277708249b601696f42e5882e58 (diff)
downloadikiwiki-a2979b2b52eee47cc6d08274b5c6947aeaf9bfdc.tar
ikiwiki-a2979b2b52eee47cc6d08274b5c6947aeaf9bfdc.tar.gz
mdwn: Avoid trying to use multimarkdown if it is not installed.
Diffstat (limited to 'IkiWiki/Plugin/mdwn.pm')
-rw-r--r--IkiWiki/Plugin/mdwn.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/mdwn.pm b/IkiWiki/Plugin/mdwn.pm
index c62780cb8..3de59ef3d 100644
--- a/IkiWiki/Plugin/mdwn.pm
+++ b/IkiWiki/Plugin/mdwn.pm
@@ -43,8 +43,10 @@ sub htmlize (@) {
if ($@) {
debug(gettext("multimarkdown is enabled, but Text::MultiMarkdown is not installed"));
}
- $markdown_sub=sub {
- Text::MultiMarkdown::markdown(shift, {use_metadata => 0});
+ else {
+ $markdown_sub=sub {
+ Text::MultiMarkdown::markdown(shift, {use_metadata => 0});
+ }
}
}
if (! defined $markdown_sub) {