]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/mdwn.pm
aggregate.pm: Replace Unicode apostrophe with ASCII to unbreak build
[git.ikiwiki.info.git] / IkiWiki / Plugin / mdwn.pm
index ca8898679216684da988bfd2fb08cd14dd04ff51..254ab51d03b078afbbeed1727fdb56b18a6c1a1c 100644 (file)
@@ -43,9 +43,11 @@ sub htmlize (@) { #{{{
        
        # Workaround for perl bug (#376329)
        $content=Encode::encode_utf8($content);
-       $content=Encode::encode_utf8($content);
-       $content=&$markdown_sub($content);
-       $content=Encode::decode_utf8($content);
+       eval {$content=&$markdown_sub($content)};
+       if ($@) {
+               eval {$content=&$markdown_sub($content)};
+               print STDERR $@ if $@;
+       }
        $content=Encode::decode_utf8($content);
 
        return $content;