* Don't rm -rf ikiwiki on distclean, since a) there's no such file
[ikiwiki.git] / IkiWiki / Plugin / typography.pm
1 #!/usr/bin/perl
2
3 package IkiWiki::Plugin::typography;
4
5 use warnings;
6 use strict;
7 use IkiWiki;
8 use Text::Typography;
9
10 sub import { #{{{
11         IkiWiki::hook(type => "sanitize", id => "typography", call => \&sanitize);
12 } # }}}
13
14 sub sanitize (@) { #{{{
15         my %params=@_;
16
17         return Text::Typography::typography($params{content});
18 } # }}}
19
20 1