On 2015-11-10, Isarra Yos zhorishna@gmail.com wrote:
Hi! I would like to turn the mw ToC into a discrete object within the codebase. Write a ToC class and pull all the random building parts out of the parser and five levels of pageoutput, and make it stop messing up the page caching and stuff. Make this class a thing, separate from the content itself, that can appear on the page or be toggled or messed with or added to or moved or whatever by extensions.
I have a proposal about this for the developers summit which is about as specific: https://phabricator.wikimedia.org/T114057
Wow, very good, I would no longer need https://www.mediawiki.org/wiki/Extension:DeToc
Lots of nuances probably though.
Saper