blob: e6ddc91cc537a54e49ef9237f4daccab8bf2987c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
Hi All;
I'm trying to use a filter hook as part of making [[wikilinks|ikiwiki/wikilink]] work in [[plugins/contrib/tex4ht]].
It seems that filter is called for every page. For my application I just want it to be called for ".tex" files,
but right now I have to have a look at the content, which I don't like so much.
Is there a better hook to use for this? I need to transform the input before preprocessing.
[[DavidBremner]]
>You can check the type of the page without having to look at the content of the page:
my $page_file=$pagesources{$page};
my $page_type=pagetype($page_file);
>Then you can check whether `$page_type` is "tex".
>--[[KathrynAndersen]]
|