The refactorings in I45951a49e57a8031887ee6e4546335141d231c18 replaced calls to ParserOutput::getText() with direct invocations of the pipeline, including in OutputPage::getParserOutputText(). However, the direct invocation skipped the implicit initialization of the options array previously done in ParserOutput::getText(). Ensure that the options array gets appropriate default values; in particular 'isParsoidContent' is expected to always be set. Bug: T293512 Bug: T373405 Change-Id: Ib8d540b4221f7c00f6047706c4e3bfd88a2cb8cc |
||
|---|---|---|
| .. | ||
| Stages | ||
| ContentDOMTransformStage.php | ||
| ContentTextTransformStage.php | ||
| DefaultOutputPipelineFactory.php | ||
| OutputTransformPipeline.php | ||
| OutputTransformStage.php | ||
| README.md | ||
Output transformations pipelines for wikitext
The classes in the Stages/ subdirectory contains HTML and DOM transforms for use in
output processing pipelines, i.e. postprocessors for ParserOutput objects that either
directly result from a parse or are fetched from ParserCache.
The default pipeline is created by DefaultOutputTransformFactory; it corresponds to
what was previously contained in ParserOutput::getText. The shouldRun method in these
stages uses defaults that indicates if the stage runs or not in the default
OutputTransformPipeline.