mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TextExtracts
synced 2024-11-23 15:56:52 +00:00
207242f93d
Use ParserOutput::getRawText() instead of deprecated getText(). This avoids a dependency on MediaWiki\OutputTransform classes, which call into Skin and lots of other scary code. Small updates are needed so that we continue stripping the TOC and section edit links in this format. This simultaneously reverts two patches that were only needed to work around problems caused by markup added by OutputTransforms: * Revert "Skip <h2> in TOC when extracting first section" This reverts commit60e1c5ad83
. * Revert "ExtractFormatter: Rescue headings from being removed" This reverts commit0fafa44a20
. Change-Id: Ie436576a356d05f2c4c4b84c8c1d82ba70d357d4
80 lines
1.4 KiB
JSON
80 lines
1.4 KiB
JSON
{
|
|
"name": "TextExtracts",
|
|
"author": [
|
|
"Max Semenik"
|
|
],
|
|
"requires": {
|
|
"MediaWiki": ">= 1.42"
|
|
},
|
|
"url": "https://www.mediawiki.org/wiki/Extension:TextExtracts",
|
|
"descriptionmsg": "textextracts-desc",
|
|
"license-name": "GPL-2.0-or-later",
|
|
"type": "other",
|
|
"ConfigRegistry": {
|
|
"textextracts": "GlobalVarConfig::newInstance"
|
|
},
|
|
"APIPropModules": {
|
|
"extracts": {
|
|
"class": "TextExtracts\\ApiQueryExtracts",
|
|
"services": [
|
|
"ConfigFactory",
|
|
"MainWANObjectCache",
|
|
"LanguageConverterFactory",
|
|
"WikiPageFactory",
|
|
"TitleFormatter"
|
|
]
|
|
}
|
|
},
|
|
"MessagesDirs": {
|
|
"TextExtracts": [
|
|
"i18n",
|
|
"i18n/api"
|
|
]
|
|
},
|
|
"AutoloadNamespaces": {
|
|
"TextExtracts\\": "includes/"
|
|
},
|
|
"Hooks": {
|
|
"ApiOpenSearchSuggest": "main",
|
|
"SearchResultProvideDescription": "main"
|
|
},
|
|
"HookHandlers": {
|
|
"main": {
|
|
"class": "TextExtracts\\Hooks",
|
|
"services": [
|
|
"ConfigFactory"
|
|
]
|
|
}
|
|
},
|
|
"config": {
|
|
"ExtractsRemoveClasses": {
|
|
"value": [
|
|
"table",
|
|
"div",
|
|
"figure",
|
|
"script",
|
|
"input",
|
|
"style",
|
|
"ul.gallery",
|
|
"mw\\:editsection",
|
|
"editsection",
|
|
"meta",
|
|
"sup.reference",
|
|
"ol.references",
|
|
".error",
|
|
".nomobile",
|
|
".noprint",
|
|
".noexcerpt",
|
|
".sortkey"
|
|
]
|
|
},
|
|
"ExtractsExtendOpenSearchXml": {
|
|
"value": false
|
|
},
|
|
"ExtractsExtendRestSearch": {
|
|
"value": false
|
|
}
|
|
},
|
|
"manifest_version": 2
|
|
}
|