]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - IkiWiki/Plugin/typography.pm
response
[git.ikiwiki.info.git] / IkiWiki / Plugin / typography.pm
1 #!/usr/bin/perl
3 package IkiWiki::Plugin::typography;
5 use warnings;
6 use strict;
7 use IkiWiki;
9 sub import { #{{{
10         IkiWiki::hook(type => "sanitize", id => "typography", call => \&sanitize);
11 } # }}}
13 sub sanitize (@) { #{{{
14         my %params=@_;
16         eval q{use Text::Typography};
17         return $params{content} if $@;
19         return Text::Typography::typography($params{content});
20 } # }}}
22 1