]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/mdwn.pm
fix links to sparklines; abs2rel -> urlto
[git.ikiwiki.info.git] / IkiWiki / Plugin / mdwn.pm
index c871e2a4d326c7080bdb5803eb462491a6cdbf79..c087f2b41309f892e52476305bf31ccc48fb7840 100644 (file)
@@ -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);