X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/84c905ec2011ec846d3d8b27f21f5ffd53c73840..532ec56a5f2131809f8a2709f2f1d5c1e5d0a19c:/IkiWiki/Plugin/typography.pm diff --git a/IkiWiki/Plugin/typography.pm b/IkiWiki/Plugin/typography.pm index 8ae1f3445..27089b390 100644 --- a/IkiWiki/Plugin/typography.pm +++ b/IkiWiki/Plugin/typography.pm @@ -24,11 +24,15 @@ sub getsetup () { #{{{ error($@) if $@; return + plugin => { + safe => 1, + rebuild => 1, + }, typographyattributes => { type => "string", - default => "3", - example => "tag", + example => "3", description => "Text::Typography attributes value", + advanced => 1, safe => 1, rebuild => 1, }, @@ -38,7 +42,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);