https://bugzilla.wikimedia.org/show_bug.cgi?id=67540

            Bug ID: 67540
           Summary: Parsoid must produce/preserve the metadata about
                    additional ResourceLoader modules required by
                    extension tags
           Product: Parsoid
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
       Web browser: ---
   Mobile Platform: ---

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.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to