Don't bail on single-line definition list due to excess close tags.
authorC. Scott Ananian <cscott@cscott.net>
Thu, 22 Dec 2016 17:30:36 +0000 (12:30 -0500)
committerC. Scott Ananian <cscott@cscott.net>
Fri, 17 Feb 2017 21:34:55 +0000 (16:34 -0500)
commit3a8a986e35ab5ae1328b2147ec31fc2d27caf9b8
treee9c68eeee94b31b0ab3bcef557f2e137861c218c
parentee002d67c95757eec75106cc4b880eb3b2917dc5
Don't bail on single-line definition list due to excess close tags.

When parsing a single line definition list, we track nested tags so that:

; <b>foo:bar</b>: baz

breaks before `baz`, not between `foo` and `bar`.  But we currently bail
out of this algorithm entirely if we see a mismatched close tag.  We should
just ignore the unmatched tag, like Parsoid does.

Change-Id: I6306dcad6347abeb6ab001d35562f1ab9f374bd1
includes/parser/BlockLevelPass.php
tests/parser/parserTests.txt