]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Render.pm
* Patch from Recai Oktaş to improve utf-8 support, it should now use proper
[ikiwiki.git] / IkiWiki / Render.pm
index 0dfa03cd4229f040ef17ae66579f1d3c4ca5ec35..87546eeb3c785259df656ef67f24030fd0e2e15a 100644 (file)
@@ -29,13 +29,10 @@ sub htmlize ($$) { #{{{
                $blosxom::version="is a proper perl module too much to ask?";
                use warnings 'all';
                do "/usr/bin/markdown";
-               require Encode;
        }
        
        if ($type eq '.mdwn') {
-               # Markdown does character based stuff that does not work
-               # well with utf-8 strings.
-               $content=Encode::decode_utf8(Markdown::Markdown(Encode::encode_utf8($content)));
+               $content=Markdown::Markdown($content);
        }
        else {
                error("htmlization of $type not supported");