Put <dt>/<dd>/<li> in the always-suppressing category of doBlockLevels
authorArlo Breault <abreault@wikimedia.org>
Thu, 12 Jul 2018 18:41:20 +0000 (14:41 -0400)
committerArlo Breault <abreault@wikimedia.org>
Fri, 13 Jul 2018 16:40:49 +0000 (12:40 -0400)
commitce9f5c2546ffe3fe2f44d3990c1aadb30d52f42c
treeeadceead87e5d0f2d23b9b23a3c502fcd142a505
parent5a7f860b7859146d006d09c29f542be835165870
Put <dt>/<dd>/<li> in the always-suppressing category of doBlockLevels

This is a clarification of what already happens in practice for lists
generated from wikitext syntax, since that parsing happens
simultaneously.

Parsoid, for its part, does list handling prior to paragraph wrapping,
so must make use of these definitions.

Further, this helps reduce paragraph wrapping in interstitial spacing of
lists from HTML syntax, as spec'd in the tests, though the possibility
isn't eliminated entirely.

The TOC generation code is altered to reduce the number of newlines
emitted in between list items, since those are now left intact.

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