- # embedded inside it. This is why scan is set for this preprocessor
- # directive, since it could expand to something with a link in it.
- $params{text}=IkiWiki::preprocess($params{page}, $params{destpage}, $params{text});
+ # embedded inside it.
+ $params{text}=IkiWiki::preprocess($params{page}, $params{destpage},
+ IkiWiki::filter($params{page}, $params{destpage}, $params{text}));
+
+ my $id=genid($params{page}, $params{id});
+ my $class=(lc($params{open}) ne "yes") ? "toggleable" : "toggleable-open";