Issue
Paste the following in a wiki page:
<code>A piece of computer code asdasdasd <h2> buuu</h2> zsadsdasd
Expected:
Output html should be similar to above.
Actual:
<p><code>A piece of computer code asdasdasd </code></p><code><h2><span class="mw-headline" id="buuu">buuu</span></h2></code><code><p>zsadsdasd </p></code>
See it in action on this page (https://www.mediawiki.org/w/index.php?title=Project:Sandbox&oldid=2583108)
Possible solutions:
- Increase priority of this lint error - This seems to be creating huge rendering differences, and seems bad enough to either increase the priority of the "misnested" tag
- Set it as a separate high priority category
- Or decide whether this is actually a bug in the parser - and fix that
Notes: I've been seeing this for quite some time in some help pages (e.g. https://www.mediawiki.org/w/index.php?title=Help_talk:Searching&oldid=2475830 scroll down), and couldn't understand where it came from until I tried it in a different wiki, and it became obvious.