Hi,
On 9/7/22 15:18, bawolff wrote:
One possible fix would be to make syntaxhighlight an expensive parser function ;)
I just merged https://gerrit.wikimedia.org/r/c/mediawiki/extensions/SyntaxHighlight_GeSHi/+/830683/ from Umherirrender that does this.
Once deployed, if a page has too many <syntaxhighlight> calls, it'll just return un-highlighted code blocks (same as if you entered an unknown language) for the excess ones. This should prevent pages with an extreme amount of highlighting invocations from failing to render entirely, they'll just degrade towards the end of the page.
A note will be included in the next Tech News about it.
Thanks, -- Kunal / Legoktm