If a heading on a page contains italic text but doesn't close the '' or <i> syntax, then two things happen:
- The rest of the page after that heading is italic (this is more or less expected).
It is eventually closed at the end of the user-generated content block, via Tidy/Remex.
- The rest of the page before that heading is italic as well (unexpected).
This is because it seems the table of contents component doesn't balance itself.
Example at https://www.mediawiki.org/w/index.php?title=Project:Sandbox&oldid=3134998
Heading 5 ("Safe") has unclosed italics.
== ''Safe == As everyone eventually finds...
<div id="toc" class="toc"> ... <li class="toclevel-1 tocsection-5"><a href="#Safe"><span class="tocnumber">5</span> <span class="toctext"><i>Safe</i></span></a></li><i> <li class="toclevel-1 tocsection-6"><a href="#PartialTypeSignatures"><span class="tocnumber">6</span> <span class="toctext">PartialTypeSignatures</span></a></li> </i></ul><i> </i></div><i> </i><i><h2><span class="mw-headline" id="The_Benign">The Benign</span> .. </h2></i><i><p>It's not obvious which extensions are the most common but it's fairly safe to say that these extensions are benign and are safely used extensively: </p></i><i><ul> <li>OverloadedStrings</li> <li>FlexibleContexts</li> <li>FlexibleInstances</li> <li>GeneralizedNewtypeDeriving</li> <li>TypeSynonymInstances</li> <li>MultiParamTypeClasses</li> ... </ul> .. </i>