Parsoid must produce/preserve the metadata about additional ResourceLoader modules required by extension tags. (I've heard some gossip that it falls back to PHP parser to do this, so this should be easy to do.)
For example, in PHP parser, "<syntaxhighlight lang=php>$foo</syntaxhighlight>" will add up to two modules to ParserOutput's $mModuleStyles:
- 'ext.geshi.language.php' (there is such a module for every supported language)
- 'ext.geshi.local' (if $wgUseSiteCss is true)
This information must somehow be provided by the API used by VisualEditor.
The minimum set of things that have to be provided is the ones provided by OutputPage::addParserOutputContent() in PHP, that is modules, module styles, module scripts, module messages and JS config vars. (These are available via the action=parse&prop=modules API in core.)
Version: unspecified
Severity: major