X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/bbfe1b9058f3e2b73d6c8c1f7eed80d72727d2a4..7ceb5b1f75efa68aac88c179dd6d14e743e4a2ae:/IkiWiki/Plugin/typography.pm?ds=inline 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}); } # }}}