Hello,
I'm trying to make https://www.mediawiki.org/wiki/Extension:MagicNumberedHeadings working, having in mind that Parser method setNumberHeadings is removed from MediaWiki.

This is my code so far https://github.com/kizule/NumberedHeadings, and it's not doing anything, I would love to get some suggestions on how to make it work.

Currently, it's not doing anything (https://oer.opendeved.net/wiki/OER4Schools), it should remove the tag from the page, and make headings numbered where the tag is added.

I've used Krinkle's snippet from MediaWiki.org in form of gadgets, and it's working fine, but it's not removing tag and it is being executed on every single page.

Best regards,
Zoran