avoid fatal error in sanitize
parent
84c905ec20
commit
426200b34a
|
@ -38,7 +38,7 @@ sub sanitize (@) { #{{{
|
|||
my %params=@_;
|
||||
|
||||
eval q{use Text::Typography};
|
||||
error($@) if $@;
|
||||
return $params{content} if $@;
|
||||
|
||||
my $attributes=defined $config{typographyattributes} ? $config{typographyattributes} : '3';
|
||||
return Text::Typography::typography($params{content}, $attributes);
|
||||
|
|
Loading…
Reference in New Issue