]> sipb.mit.edu Git - ikiwiki.git/blob - IkiWiki/Plugin/html.pm
add in a hack to improve the look of check marks in outline
[ikiwiki.git] / IkiWiki / Plugin / html.pm
1 #!/usr/bin/perl
2 # Raw html as a wiki page type.
3 package IkiWiki::Plugin::html;
4
5 use warnings;
6 use strict;
7 use IkiWiki;
8
9 sub import { #{{{
10         IkiWiki::hook(type => "htmlize", id => "html", call => sub { shift });
11         IkiWiki::hook(type => "htmlize", id => "htm", call => sub { shift });
12
13         # ikiwiki defaults to skipping .html files as a security measure;
14         # make it process them so this plugin can take effect
15         $IkiWiki::config{wiki_file_prune_regexp} =~ s/\|\\\.x\?html\?\$//;
16 } # }}}
17
18 1