There are at least two things currently part of the ParserCache key, and thus part of the ParserOutput object state, that are not actually relevant for the Parser and are only used by ParserOutput::getText() at run-time:
- Enable TOC.
- Enable section edit links.
I'm proposing to deprecate these state properties and methods, and instead implement these as run-time parameters to ParserOutput::getText().
In addition, per T167784#3475991, it might be interesting to try and move the wrapclass option from the parser into ParserOutput. We may need to special-case wrapclass a bit if getRawText is meant to have the wrapper, but that still do-able.