On 8/5/09 1:20 AM, Alex Bernier wrote:
> function efParserInit() {
> global $wgParser;
> $wgParser->setHook( 'foo', 'effooRender' );
> $wgParser->setHook( 'bar', 'efbarRender' );
> return true;
> }
[snip]
> I crate a page on my Wiki with the following text :
> <foo>test1<bar>'''test2'''</bar></foo>
[snip]
> My problem is here : there is only one "ext" element which correspond to my
> "foo" tag. I was waiting two "ext" elements : one for "foo" tag and one for
> "bar" tag.
>
>
> This is just I want.
> Is this behaviour normal ?
Looks normal. Since your tag is opaque, the preparser can't descend into
its contents for additional parsing.
I'm not sure offhand whether we have appropriate interfaces already for
declaring a tag hook at setup time as containing wikitext.
-- brion
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l