@JJMC89 wrote a Python script using Pywikibot and mwparserfromhell. It does not cover 1A (below), but that syntax is not common.
Questions
- Is this something that will be useful to keep around for the long term?
- Given 1, should it be published in Pywikibot-Scripts or elsewhere?
SyntaxHighlight deprecations
- The <source> tag is deprecated. <syntaxhighlight> should be used instead.
- {{#tag:source|...}} → {{#tag:syntaxhighlight|...}} too
- The enclose parameter is deprecated. If set to "none" it, should be replaced by the inline parameter. Otherwise, it should be removed.