Worth noting that parsoid output does not include the ToC, since it is expected to be generated after the fact. --scott On Nov 10, 2015 3:20 AM, "Marcin Cieslak" saper@saper.info wrote:
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
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l