Parsoid
A bidirectional parser between wikitext and HTML5
|
Native Parsoid implementation of the "json" contentmodel. More...
Public Member Functions | |
getConfig () | |
Return information about this extension module.FIXME: Add more expected fields or create a class for this FIXME: The 'name' is expected to be the same as the name defined at the top level of extension.json.
| |
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.FIXME: Add more expected fields or create a class for this FIXME: The 'name' is expected to be the same as the name defined at the top level of extension.json.
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.