From 69d1592a177acb8fbfaabeeb4e26431966d9165e Mon Sep 17 00:00:00 2001 From: joey Date: Fri, 18 Aug 2006 00:44:46 +0000 Subject: * Call filter hooks on inlined page content. --- IkiWiki/Plugin/inline.pm | 6 +++++- IkiWiki/Plugin/sidebar.pm | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'IkiWiki') diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index 935df9a77..5c2aeb6c7 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -130,7 +130,11 @@ sub get_inline_content ($$) { #{{{ my $file=$pagesources{$page}; my $type=pagetype($file); if (defined $type) { - return htmlize($type, preprocess($page, $destpage, linkify($page, $destpage, readfile(srcfile($file))))); + return htmlize($type, + preprocess($page, $destpage, + linkify($page, $destpage, + filter($page, + readfile(srcfile($file)))))); } else { return ""; diff --git a/IkiWiki/Plugin/sidebar.pm b/IkiWiki/Plugin/sidebar.pm index a6efc6b8e..1685d37a4 100644 --- a/IkiWiki/Plugin/sidebar.pm +++ b/IkiWiki/Plugin/sidebar.pm @@ -26,7 +26,8 @@ sub sidebar_content ($) { #{{{ return unless length $content; return IkiWiki::htmlize($sidebar_type, IkiWiki::preprocess($sidebar_page, $page, - IkiWiki::linkify($sidebar_page, $page, $content))); + IkiWiki::linkify($sidebar_page, $page, + IkiWiki::filter($sidebar_page, $content)))); } } # }}} -- cgit v1.2.3