diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-10-26 11:56:42 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-10-26 11:56:42 -0400 |
commit | a2979b2b52eee47cc6d08274b5c6947aeaf9bfdc (patch) | |
tree | 73a5f847f558132b251a9d60f49da48c4f352c67 /IkiWiki/Plugin/mdwn.pm | |
parent | f756d7e6de847277708249b601696f42e5882e58 (diff) | |
download | ikiwiki-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.pm | 6 |
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) { |