exit with error if Text::Typography cannot be loaded
parent
435e06bce1
commit
9dc9c113cc
|
@ -22,7 +22,7 @@ sub sanitize (@) { #{{{
|
|||
my %params=@_;
|
||||
|
||||
eval q{use Text::Typography};
|
||||
return $params{content} if $@;
|
||||
error($@) if $@;
|
||||
|
||||
my $attributes=defined $config{typographyattributes} ? $config{typographyattributes} : '3';
|
||||
return Text::Typography::typography($params{content}, $attributes);
|
||||
|
|
Loading…
Reference in New Issue