X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/c7140ad90b0db2078e70b9cd3f08e1d176125191..ffae58a97865d24796826f4b4ff9da82aef93116:/IkiWiki/Plugin/typography.pm diff --git a/IkiWiki/Plugin/typography.pm b/IkiWiki/Plugin/typography.pm index d613f873b..3b66ab0d0 100644 --- a/IkiWiki/Plugin/typography.pm +++ b/IkiWiki/Plugin/typography.pm @@ -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}); } # }}}