diff options
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/mdwn.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/mdwn.pm b/IkiWiki/Plugin/mdwn.pm index e5228c329..0fc077f5e 100644 --- a/IkiWiki/Plugin/mdwn.pm +++ b/IkiWiki/Plugin/mdwn.pm @@ -25,8 +25,11 @@ sub htmlize (@) { #{{{ eval q{use Markdown}; if ($@) { - do "/usr/bin/markdown" || - error("failed to load Markdown.pm perl module ($@) or /usr/bin/markdown ($!)"); + eval q{use Text::Markdown}; + if ($@) { + do "/usr/bin/markdown" || + error("failed to load Markdown.pm perl module ($@) or /usr/bin/markdown ($!)"); + } } $markdown_loaded=1; require Encode; |