wiki.techinc.nl/includes/OutputTransform
C. Scott Ananian 1faf18d657 Ensure that isParsoidContent is initialized in OutputTransformPipeline
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
2024-08-26 23:42:30 +00:00
..
Stages Move Language and friends into Language namespace 2024-08-10 13:36:30 +02:00
ContentDOMTransformStage.php Make ContentDOMTransformStage not Parsoid specific 2024-08-14 14:23:44 -04:00
ContentTextTransformStage.php Use $stage::CONSTRUCTOR_OPTIONS in DefaultOutputPipelineFactory 2024-06-10 20:53:21 -04:00
DefaultOutputPipelineFactory.php Add OutputPipelineStages from extensions 2024-07-25 11:44:17 -04:00
OutputTransformPipeline.php Ensure that isParsoidContent is initialized in OutputTransformPipeline 2024-08-26 23:42:30 +00:00
OutputTransformStage.php Use $stage::CONSTRUCTOR_OPTIONS in DefaultOutputPipelineFactory 2024-06-10 20:53:21 -04:00
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.