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