blob: 3b66ab0d087e871e8152992552ade197610c8039 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/usr/bin/perl
package IkiWiki::Plugin::typography;
use warnings;
use strict;
use IkiWiki 2.00;
sub import { #{{{
IkiWiki::hook(type => "sanitize", id => "typography", call => \&sanitize);
} # }}}
sub sanitize (@) { #{{{
my %params=@_;
eval q{use Text::Typography};
return $params{content} if $@;
return Text::Typography::typography($params{content});
} # }}}
1
|