Parsoid
A bidirectional parser between wikitext and HTML5
|
This class assembles parser pipelines from parser stages. More...
Public Member Functions | |
__construct (Env $env) | |
parse (string $src) | |
getPipeline (string $type, array $options=[]) | |
Get a pipeline of a given type. | |
returnPipeline (ParserPipeline $pipe) | |
Callback called by a pipeline at the end of its processing. | |
This class assembles parser pipelines from parser stages.
Wikimedia\Parsoid\Wt2Html\ParserPipelineFactory::getPipeline | ( | string | $type, |
array | $options = [] ) |
Get a pipeline of a given type.
Pipelines are cached as they are frequently created.
string | $type | |
array | $options | These also determine the key under which the pipeline is cached for reuse. |
Wikimedia\Parsoid\Wt2Html\ParserPipelineFactory::returnPipeline | ( | ParserPipeline | $pipe | ) |
Callback called by a pipeline at the end of its processing.
Returns the pipeline to the cache.
ParserPipeline | $pipe |