X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/bbfe1b9058f3e2b73d6c8c1f7eed80d72727d2a4..89484c06d97cc7d47118ba9bcf6039431d3ff368:/IkiWiki/Plugin/typography.pm?ds=sidebyside diff --git a/IkiWiki/Plugin/typography.pm b/IkiWiki/Plugin/typography.pm index 6c5f06b0f..682dadab7 100644 --- a/IkiWiki/Plugin/typography.pm +++ b/IkiWiki/Plugin/typography.pm @@ -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}); } # }}}