aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-09-26 06:08:24 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-09-26 06:08:24 +0000
commitb78e139c50600f631991f8eac06815d6cf45cc35 (patch)
tree18a8666dcacbc74eea469cdcada832eb84475671 /IkiWiki/Plugin
parentdb8c6d855067221f597b06dec0ab4364efe1f704 (diff)
downloadikiwiki-b78e139c50600f631991f8eac06815d6cf45cc35.tar
ikiwiki-b78e139c50600f631991f8eac06815d6cf45cc35.tar.gz
* Don't fail syntax check if Text::Typography isn't installed.
Closes: #389406
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/typography.pm4
1 files changed, 3 insertions, 1 deletions
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});
} # }}}