aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/typography.pm
blob: 6c5f06b0f3928aa7550a9c6fb32b92ef1891f73d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/perl

package IkiWiki::Plugin::typography;

use warnings;
use strict;
use IkiWiki;
use Text::Typography;

sub import { #{{{
	IkiWiki::hook(type => "sanitize", id => "typography", call => \&sanitize);
} # }}}

sub sanitize (@) { #{{{
	my %params=@_;

	return Text::Typography::typography($params{content});
} # }}}

1