]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/typography.pm
fix cdate
[ikiwiki.git] / IkiWiki / Plugin / typography.pm
index d613f873b146dd40c90324627ad0b8993b368df9..3b66ab0d087e871e8152992552ade197610c8039 100644 (file)
@@ -4,7 +4,7 @@ package IkiWiki::Plugin::typography;
 
 use warnings;
 use strict;
-use IkiWiki;
+use IkiWiki 2.00;
 
 sub import { #{{{
        IkiWiki::hook(type => "sanitize", id => "typography", call => \&sanitize);
@@ -14,6 +14,8 @@ sub sanitize (@) { #{{{
        my %params=@_;
 
        eval q{use Text::Typography};
+       return $params{content} if $@;
+
        return Text::Typography::typography($params{content});
 } # }}}