sub import { #{{{
hook(type => "preprocess", id => "toc", call => \&preprocess);
- hook(type => "sanitize", id => "toc", call => \&sanitize);
+ hook(type => "format", id => "toc", call => \&format);
} # }}}
my %tocpages;
}
} # }}}
-sub sanitize (@) { #{{{
+sub format (@) { #{{{
my %params=@_;
my $content=$params{content};