3 package IkiWiki::Plugin::typography;
10 hook(type => "getopt", id => "typography", call => \&getopt);
11 IkiWiki::hook(type => "sanitize", id => "typography", call => \&sanitize);
15 eval q{use Getopt::Long};
17 Getopt::Long::Configure('pass_through');
18 GetOptions("typographyattributes=s" => \$config{typographyattributes});
21 sub sanitize (@) { #{{{
24 eval q{use Text::Typography};
27 my $attributes=defined $config{typographyattributes} ? $config{typographyattributes} : '3';
28 return Text::Typography::typography($params{content}, $attributes);