On 11/07/12 02:08, Sal Quintanilla wrote: > I'm working on a tag extension that prevents rendering of blocked output > under certain circumstances. It either does or does not use > recursiveTagParse() to do the right thing for blocks between my > <block></block> pairs. It works exactly the way I want it to, but I've got > a couple of side effects. > > > > The biggest one is that when headers are involved, the section edit links > report "Cannot find section" when clicked. I'm not sure what to do about > that, any ideas?
By wrapping headings in an xmlish tag, you are hiding them from Parser::extractSections(), which doesn't call your extension to expand them. I'm not sure if it's fixable. You could try using Parser::setTransparentTagHook() instead of Parser::setHook(). -- Tim Starling _______________________________________________ MediaWiki-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
