Parsoid
A bidirectional parser between wikitext and HTML5
|
wt2html DOM processor used to implement some DOM functionality (ex: DSR computation, template wrapping, etc.) More...
Public Member Functions | |
run (Env $env, Node $root, array $options=[], bool $atTopLevel=false) | |
wt2html DOM processor used to implement some DOM functionality (ex: DSR computation, template wrapping, etc.)
Wikimedia\Parsoid\Wt2Html\Wt2HtmlDOMProcessor::run | ( | Env | $env, |
Node | $root, | ||
array | $options = [], | ||
bool | $atTopLevel = false ) |
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) |
Implemented in Wikimedia\Parsoid\Wt2Html\DOM\Processors\AddMediaInfo, Wikimedia\Parsoid\Wt2Html\DOM\Processors\AddMetaData, Wikimedia\Parsoid\Wt2Html\DOM\Processors\AddRedLinks, Wikimedia\Parsoid\Wt2Html\DOM\Processors\ComputeDSR, Wikimedia\Parsoid\Wt2Html\DOM\Processors\ConvertOffsets, Wikimedia\Parsoid\Wt2Html\DOM\Processors\LangConverter, Wikimedia\Parsoid\Wt2Html\DOM\Processors\Linter, Wikimedia\Parsoid\Wt2Html\DOM\Processors\MarkFosteredContent, Wikimedia\Parsoid\Wt2Html\DOM\Processors\MigrateTemplateMarkerMetas, Wikimedia\Parsoid\Wt2Html\DOM\Processors\MigrateTrailingNLs, Wikimedia\Parsoid\Wt2Html\DOM\Processors\Normalize, Wikimedia\Parsoid\Wt2Html\DOM\Processors\ProcessEmbeddedDocs, Wikimedia\Parsoid\Wt2Html\DOM\Processors\ProcessTreeBuilderFixups, Wikimedia\Parsoid\Wt2Html\DOM\Processors\PWrap, Wikimedia\Parsoid\Wt2Html\DOM\Processors\RunExtensionProcessors, Wikimedia\Parsoid\Wt2Html\DOM\Processors\UpdateTemplateOutput, Wikimedia\Parsoid\Wt2Html\DOM\Processors\WrapAnnotations, Wikimedia\Parsoid\Wt2Html\DOM\Processors\WrapSections, Wikimedia\Parsoid\Wt2Html\DOM\Processors\WrapTemplates, and Wikimedia\Parsoid\Wt2Html\DOMPPTraverser.