]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/typography.pm
* Atom feed support based on a patch by Clint Adams.
[git.ikiwiki.info.git] / IkiWiki / Plugin / typography.pm
index 6c5f06b0f3928aa7550a9c6fb32b92ef1891f73d..682dadab7bb7cddc7c960eb9beffcef05a43f5d6 100644 (file)
@@ -5,7 +5,6 @@ package IkiWiki::Plugin::typography;
 use warnings;
 use strict;
 use IkiWiki;
-use Text::Typography;
 
 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});
 } # }}}