Make TOC hideable
commit21c1c7d025365540f17be4f7ae19184e1ccca4cc
authorMax Semenik <maxsem.wiki@gmail.com>
Thu, 22 Aug 2013 22:22:03 +0000 (23 02:22 +0400)
committerMax Semenik <maxsem.wiki@gmail.com>
Fri, 18 Oct 2013 13:47:47 +0000 (18 17:47 +0400)
treed905f7e6e02f4330a6a923ef12bcefac552cce2f
parent8c6e0901332333de3c92740e4badd4ea2c4f782b
Make TOC hideable

Currently, if an extension doesn't want a TOC, it has to remove it manually.
This change wraps the TOC in markers that make it easy to remove it in ParserOutput
on demand without fragmenting the parser cache with stuff like "use/not use TOC".

Change-Id: I2889bcb9eb999c9049601e92440132118e1a8a41
includes/OutputPage.php
includes/parser/Parser.php
includes/parser/ParserOutput.php
tests/parser/parserTest.inc
tests/parser/parserTests.txt
tests/phpunit/includes/parser/NewParserTest.php