Parsoid
A bidirectional parser between wikitext and HTML5
|
Public Member Functions | |
run (Env $env, Node $root, array $options=[], bool $atTopLevel=false) | |
FIXME: – mwt-id counter may need to be reset! – We have hardcoded check for Template: in English – We aren't checking for other instances (ex: template args) – We aren't checking for indirect dependencies (ex: nested templates) – In the core repo, we also need to figure out what OutputTransformPipeline stages need to run in this case. | |
Wikimedia\Parsoid\Wt2Html\DOM\Processors\UpdateTemplateOutput::run | ( | Env | $env, |
Node | $root, | ||
array | $options = [], | ||
bool | $atTopLevel = false ) |
FIXME: – mwt-id counter may need to be reset! – We have hardcoded check for Template: in English – We aren't checking for other instances (ex: template args) – We aren't checking for indirect dependencies (ex: nested templates) – In the core repo, we also need to figure out what OutputTransformPipeline stages need to run in this case.
Env | $env | |
Element | DocumentFragment | $root | The root of the tree to process |
array | $options | |
bool | $atTopLevel | Is this processor invoked on the top level page? If false, this is being invoked in a sub-pipeline (ex: extensions) |
Implements Wikimedia\Parsoid\Wt2Html\Wt2HtmlDOMProcessor.