Page MenuHomePhabricator

Allow extension options to be specified in API calls
Open, MediumPublic

Description

The rendering of a page can be affected by user extension options (e.g. their choice of renderer for the Math extension) so we should be able to pass through these options to the API.

This is blocking proper support of the Math extension in VisualEditor.


Version: 1.23.0
Severity: normal

Details

Reference
bz52031

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:47 AM
bzimport set Reference to bz52031.
bzimport added a subscriber: Unknown Object (MLST).

[Setting normal prio as bug 51698 (blocked by this) is also normal prio.]

To do something about this, I think we'd need:

  1. Put these extension options in ParserOptions, somehow. The extension would also have to depend on the ParserOptions rather than user preferences or the like to determine behavior.
  2. Be able to query the options available in ParserOptions, along with their API data types. And be able to set an option generically by name.
  3. Then ApiParse and other modules can use this to add relevant parameters for the parser options.