diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-08-18 00:44:46 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-08-18 00:44:46 +0000 |
commit | 69d1592a177acb8fbfaabeeb4e26431966d9165e (patch) | |
tree | 2844a85657eec959791f0c63265669f25f5c769b /IkiWiki | |
parent | 3fe48bcf83c48426acd1daa9764838e0bcba9adc (diff) | |
download | ikiwiki-69d1592a177acb8fbfaabeeb4e26431966d9165e.tar ikiwiki-69d1592a177acb8fbfaabeeb4e26431966d9165e.tar.gz |
* Call filter hooks on inlined page content.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/inline.pm | 6 | ||||
-rw-r--r-- | IkiWiki/Plugin/sidebar.pm | 3 |
2 files changed, 7 insertions, 2 deletions
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)))); } } # }}} |