Steps to reproduce
A parser test lsthParserTest.txt: transclude a section with invalid heading fails when I try to backport ProofreadPage patches to 1.42:
https://gerrit.wikimedia.org/r/c/mediawiki/extensions/ProofreadPage/+/1020741
https://gerrit.wikimedia.org/r/c/mediawiki/extensions/ProofreadPage/+/1020735
Expected results
These should merge
Actual results
CI blocks them from merging.