summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/embed.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Plugin/embed.pm')
-rw-r--r--IkiWiki/Plugin/embed.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/embed.pm b/IkiWiki/Plugin/embed.pm
index 4fc91d978..2a1637392 100644
--- a/IkiWiki/Plugin/embed.pm
+++ b/IkiWiki/Plugin/embed.pm
@@ -44,9 +44,18 @@ my $safehtml=qr{(
my @embedded;
sub import { #{{{
+ hook(type => "getsetup", id => "embed", call => \&getsetup);
hook(type => "filter", id => "embed", call => \&filter);
} # }}}
+sub getsetup () { #{{{
+ return
+ plugin => {
+ safe => 1,
+ rebuild => undef,
+ },
+} #}}}
+
sub embed ($) { #{{{
hook(type => "format", id => "embed", call => \&format) unless @embedded;
push @embedded, shift;