X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/0df2ad5dfe1d896520eceabfe362891f68ed3165..a651a28e69f429f932e092b9ce67f5744a508000:/IkiWiki/Plugin/mdwn.pm?ds=sidebyside diff --git a/IkiWiki/Plugin/mdwn.pm b/IkiWiki/Plugin/mdwn.pm index c871e2a4d..c087f2b41 100644 --- a/IkiWiki/Plugin/mdwn.pm +++ b/IkiWiki/Plugin/mdwn.pm @@ -34,7 +34,7 @@ sub htmlize (@) { #{{{ } else { do "/usr/bin/markdown" || - error("failed to load Markdown.pm perl module ($@) or /usr/bin/markdown ($!)"); + error(sprintf(gettext("failed to load Markdown.pm perl module (%s) or /usr/bin/markdown (%s)"), $@, $!)); $markdown_sub=\&Markdown::Markdown; } } @@ -44,7 +44,7 @@ sub htmlize (@) { #{{{ # Workaround for perl bug (#376329) $content=Encode::encode_utf8($content); $content=Encode::encode_utf8($content); - $content=Markdown::Markdown($content); + $content=&$markdown_sub($content); $content=Encode::decode_utf8($content); $content=Encode::decode_utf8($content);