Signed-off-by: intrigeri <intrigeri@boum.org>
sub htmlize (@) { #{{{
my %params=@_;
+ my $page = $params{page};
my $content = $params{content};
- # FIXME: run master page's type htmlize hook
- return $content;
+ my ($masterpage, $lang) = ($page =~ /(.*)[.]([a-z]{2})$/);
+ my $masterfile = srcfile($pagesources{$masterpage});
+
+ # force content to be htmlize'd as if it was the same type as the master page
+ return IkiWiki::htmlize($page, $page, pagetype($masterfile), $content);
} #}}}
package IkiWiki::PageSpec;