Parsoid
A bidirectional parser between wikitext and HTML5
|
Very thin shim to call ContentUtils::convertOffsets where requested in the environment. More...
Public Member Functions | |
run (Env $env, Node $root, array $options=[], bool $atTopLevel=false) | |
DOM Postprocessor entry function to walk DOM rooted at $root and convert the DSR offsets as needed. | |
Very thin shim to call ContentUtils::convertOffsets where requested in the environment.
Wikimedia\Parsoid\Wt2Html\DOM\Processors\ConvertOffsets::run | ( | Env | $env, |
Node | $root, | ||
array | $options = [], | ||
bool | $atTopLevel = false ) |
DOM Postprocessor entry function to walk DOM rooted at $root and convert the DSR offsets as needed.
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.