Bug 33845: Headings become cursive in TOC when they contain an image
authorPlatonides <platonides@users.mediawiki.org>
Sat, 21 Jan 2012 16:27:27 +0000 (16:27 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sat, 21 Jan 2012 16:27:27 +0000 (16:27 +0000)
commit49e6e233ecb3c96ba890f8afaf324579156a9de4
tree68aa01ef056ef9231b9e59daee90a7cd94a74c3b
parentdc7815689fe02122b0701137aa2c02a8eb19dcd3
Bug 33845: Headings become cursive in TOC when they contain an image
Fixes the problems with r102179 and r102179, as there are
valid tags which begin the same, which meant they were not removed from
the TOC (the second regex, intended to remove tag parameters, then converted
<img or <blockquote> into <i> / <b>).
The same problem existed in the original regex, but as there are no valid
tags which begin with sup or sub, it never happened).

Added comment explaining the tocline regex, and added a bunch of parser tests.
includes/parser/Parser.php
tests/parser/parserTests.txt