Index: trunk/extensions/InlineEditor/InlineEditorText.class.php |
— | — | @@ -207,6 +207,10 @@ |
208 | 208 | $parserOptions = clone $this->article->getParserOptions(); |
209 | 209 | $parserOptions->setEditSection( false ); |
210 | 210 | |
| 211 | + // always remove the table of contents as we don't want it pop up at partial parsing |
| 212 | + // or even at the first page render as it is an dependency |
| 213 | + $wikiMarked .= "\n__NOTOC__"; |
| 214 | + |
211 | 215 | // run $wikiMarked through the parser and store the result |
212 | 216 | return $wgParser->parse( $wikiMarked, $this->article->getTitle(), |
213 | 217 | $parserOptions, true, true, $this->article->getRevIdFetched() ); |