]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/typography.pm
improve a string
[git.ikiwiki.info.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});
 } # }}}