]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki.pm
response
[ikiwiki.git] / IkiWiki.pm
index 8af0d7889ae6daa457e16e8d819160aaf1d776b8..a9debfb7dc86f3ba51be46a1f4ba011703017b54 100644 (file)
@@ -641,8 +641,9 @@ sub userlink ($) { #{{{
        }
 } #}}}
 
-sub htmlize ($$$) { #{{{
+sub htmlize ($$$$) { #{{{
        my $page=shift;
+       my $destpage=shift;
        my $type=shift;
        my $content=shift;
        
@@ -661,6 +662,7 @@ sub htmlize ($$$) { #{{{
        run_hooks(sanitize => sub {
                $content=shift->(
                        page => $page,
+                       destpage => $destpage,
                        content => $content,
                );
        });
@@ -692,7 +694,7 @@ sub linkify ($$$) { #{{{
        return $content;
 } #}}}
 
-my %preprocessing;
+our %preprocessing;
 our $preprocess_preview=0;
 sub preprocess ($$$;$$) { #{{{
        my $page=shift; # the page the data comes from