Go to file
Bartosz Dziewoński 207242f93d ApiQueryExtracts: Use raw text from ParserOutput
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 commit 60e1c5ad83.
* Revert "ExtractFormatter: Rescue headings from being removed"
  This reverts commit 0fafa44a20.

Change-Id: Ie436576a356d05f2c4c4b84c8c1d82ba70d357d4
2024-07-16 15:21:59 +00:00
.phan Add phan 2019-04-27 21:23:26 +02:00
i18n Localisation updates from https://translatewiki.net. 2024-07-01 09:26:34 +02:00
includes ApiQueryExtracts: Use raw text from ParserOutput 2024-07-16 15:21:59 +00:00
tests/phpunit ApiQueryExtracts: Use raw text from ParserOutput 2024-07-16 15:21:59 +00:00
.eslintrc.json build: Updating mediawiki/mediawiki-codesniffer to 33.0.0 2020-11-04 14:00:01 +00:00
.gitignore build: Upgrade eslint-config-wikimedia 0.12.0, drop grunt-jsonlint 2019-05-07 10:52:31 -07:00
.gitreview Whoops, track not trace 2016-10-24 17:03:54 -07:00
.phpcs.xml Fix minor deprecations and incomplete PHPDoc tags 2021-01-08 08:36:47 +01:00
CODE_OF_CONDUCT.md build: Updating mediawiki/phan-taint-check-plugin to 1.3.0 2018-08-19 17:07:56 +00:00
composer.json build: Updating composer dependencies 2024-05-06 07:13:32 +00:00
COPYING Add COPYING 2014-01-22 21:33:49 +00:00
extension.json ApiQueryExtracts: Use raw text from ParserOutput 2024-07-16 15:21:59 +00:00
Gruntfile.js build: Updating dependencies 2021-01-30 15:53:32 +00:00
package-lock.json build: Updating eslint-config-wikimedia to 0.28.2 2024-06-22 03:07:54 +00:00
package.json build: Updating eslint-config-wikimedia to 0.28.2 2024-06-22 03:07:54 +00:00