Page MenuHomePhabricator

Headings of the form ===+\s+ are not preprocessed correctly.
Closed, ResolvedPublic


In page
there is a broken (unterminated) section header at section B.
Both the section edit links following, and preceeding, it do not give you the opportunity to correct the error.

Intuitively, one would inho assume the preceeding one to present the section with the broken part at its end.

Version: 1.16.x
Severity: minor


Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:42 PM
bzimport set Reference to bz19910.
bzimport added a subscriber: Unknown Object (MLST).

We should add a test case for the section replacement test set in parserTests.txt...

conrad.irwin wrote:

The problem is that Parser::doHeading() makes it a heading, while the Preprocessor doesn't - which is a bug. I've fixed this in r68374 and updated this bug's summary appropriately.

Change 393908 had a related patch set uploaded (by C. Scott Ananian; owner: C. Scott Ananian):
[mediawiki/services/parsoid@master] Properly handle short headings

Change 393908 merged by jenkins-bot:
[mediawiki/services/parsoid@master] Properly handle short headings