]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/typography.pm
web commit by hb
[git.ikiwiki.info.git] / IkiWiki / Plugin / typography.pm
index 6c5f06b0f3928aa7550a9c6fb32b92ef1891f73d..3b66ab0d087e871e8152992552ade197610c8039 100644 (file)
@@ -4,8 +4,7 @@ package IkiWiki::Plugin::typography;
 
 use warnings;
 use strict;
-use IkiWiki;
-use Text::Typography;
+use IkiWiki 2.00;
 
 sub import { #{{{
        IkiWiki::hook(type => "sanitize", id => "typography", call => \&sanitize);
@@ -14,6 +13,9 @@ sub import { #{{{
 sub sanitize (@) { #{{{
        my %params=@_;
 
+       eval q{use Text::Typography};
+       return $params{content} if $@;
+
        return Text::Typography::typography($params{content});
 } # }}}