Core changes for NavigableTOC extension:
authorRoan Kattouw <catrope@users.mediawiki.org>
Thu, 25 Jun 2009 11:05:22 +0000 (11:05 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Thu, 25 Jun 2009 11:05:22 +0000 (11:05 +0000)
commit82022f21bc2f459307f679436cbff30b4cad36d2
tree69af9dc87bccced95627b11f7ffe6d01da695ac5
parente664c88c12850dfd54933e83e87865a3ac9091b9
Core changes for NavigableTOC extension:
* Always generate the section tree, even when we're not generating a TOC
* Add Parser::mergeSectionTrees() to merge two section trees into one
* Add Linker::generateTOC() to generate the HTML for a TOC from a section tree, and add the section anchor to the section tree to facilitate this. This adds the ability to generate TOCs in extensions; haven't converted Parser.php to use it (yet?). As a side effect, this fixes API bug 18720
RELEASE-NOTES
includes/Linker.php
includes/parser/Parser.php