]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/embed.pm
po plugin: respect documented convention to store pagestate
[git.ikiwiki.info.git] / IkiWiki / Plugin / embed.pm
index 4fc91d978a5295473fac4135270c14027304ad2b..2a16373921436d78db16be6455fb59081149ecd2 100644 (file)
@@ -44,9 +44,18 @@ my $safehtml=qr{(
 my @embedded;
 
 sub import { #{{{
 my @embedded;
 
 sub import { #{{{
+       hook(type => "getsetup", id => "embed", call => \&getsetup);
        hook(type => "filter", id => "embed", call => \&filter);
 } # }}}
 
        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;
 sub embed ($) { #{{{
        hook(type => "format", id => "embed", call => \&format) unless @embedded;
        push @embedded, shift;