mediawiki-extensions-TextEx.../includes
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
..
ApiQueryExtracts.php ApiQueryExtracts: Use raw text from ParserOutput 2024-07-16 15:21:59 +00:00
ExtractFormatter.php ApiQueryExtracts: Use raw text from ParserOutput 2024-07-16 15:21:59 +00:00
Hooks.php Add extracts to REST search as description 2024-07-12 07:10:30 +00:00
TextTruncator.php build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0 2024-03-12 20:22:40 +01:00