fixups
[ikiwiki.git] / IkiWiki / Plugin / typography.pm
index 8ae1f3445c966e39bef6dfea77cd8072326c0027..6229e6c33258b9d6a12a43c8957cb5facbcb3739 100644 (file)
@@ -26,8 +26,7 @@ sub getsetup () { #{{{
        return
                typographyattributes => {
                        type => "string",
-                       default => "3",
-                       example => "tag",
+                       example => "3",
                        description => "Text::Typography attributes value",
                        safe => 1,
                        rebuild => 1,
@@ -38,7 +37,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);