|
Parsoid
A bidirectional parser between wikitext and HTML5
|
Native Parsoid implementation of the "json" contentmodel. More...
Inheritance diagram for Wikimedia\Parsoid\Ext\JSON\JSON:
Collaboration diagram for Wikimedia\Parsoid\Ext\JSON\JSON:Public Member Functions | |
| getConfig () | |
Return information about this extension module.The structure of the return value is enforced by moduleconfig.schema.json, in this directory.
| |
| toDOM (ParsoidExtensionAPI $extApi, ?SelectiveUpdateData $selectiveUpdateData=null) | |
| JSON to HTML. | |
| fromDOM (ParsoidExtensionAPI $extApi, ?SelectiveUpdateData $selectiveUpdateData=null) | |
| DOM to JSON. | |
Native Parsoid implementation of the "json" contentmodel.
| Wikimedia\Parsoid\Ext\JSON\JSON::fromDOM | ( | ParsoidExtensionAPI | $extApi, |
| ?SelectiveUpdateData | $selectiveUpdateData = null ) |
DOM to JSON.
| ParsoidExtensionAPI | $extApi | |
| ?SelectiveUpdateData | $selectiveUpdateData |
Reimplemented from Wikimedia\Parsoid\Core\ContentModelHandler.
| Wikimedia\Parsoid\Ext\JSON\JSON::getConfig | ( | ) |
Return information about this extension module.The structure of the return value is enforced by moduleconfig.schema.json, in this directory.
Implements Wikimedia\Parsoid\Ext\ExtensionModule.
| Wikimedia\Parsoid\Ext\JSON\JSON::toDOM | ( | ParsoidExtensionAPI | $extApi, |
| ?SelectiveUpdateData | $selectiveUpdateData = null ) |
JSON to HTML.
Implementation matches that from includes/content/JsonContent.php in mediawiki core, except that we distinguish value types.
| ParsoidExtensionAPI | $extApi | |
| ?SelectiveUpdateData | $selectiveUpdateData |
Reimplemented from Wikimedia\Parsoid\Core\ContentModelHandler.