Page MenuHomePhabricator

Inconsistent parsing of lines with mismatched i/b quote markup (first line vs rest of document)
Open, NormalPublic

Description

Look at the testcase. Now, open it in VE. Parsoid has interpreted the single quotes into a different arrangement of bold and italics than before. Having a template or image above the paragraph seems to be key to this bug; removing it prevents the issue from arising.


ORIGINAL DESCRIPTION:

If an article's wikitext contains a line of the form

Word1 '''Word2''' Word3 ''Word4'''

then Mediawiki will bold Word2 but Visual Editor won't. This happens only if the line is NOT the article's first line.
You can see this effect in action in the first paragraph of

https://en.wikipedia.org/w/index.php?title=Mutiny_on_the_Bounty&oldid=660124007&veaction=edit

Event Timeline

AxelBoldt raised the priority of this task from to Needs Triage.
AxelBoldt updated the task description. (Show Details)
AxelBoldt added a subscriber: AxelBoldt.
Restricted Application added a project: VisualEditor. · View Herald TranscriptMay 1 2015, 12:40 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Neil_P._Quinn_WMF renamed this task from Nested italics and bold is handled differently by VE and mediawiki to Parsoid dirty diff involving nesting of bold and italics.May 12 2015, 10:52 PM
Neil_P._Quinn_WMF updated the task description. (Show Details)
Neil_P._Quinn_WMF set Security to None.
Neil_P._Quinn_WMF updated the task description. (Show Details)
ssastry renamed this task from Parsoid dirty diff involving nesting of bold and italics to Inconsistent parsing of lines with mismatched i/b quote markup (first line vs rest of document) .May 12 2015, 11:04 PM
ssastry triaged this task as Normal priority.

The bug occurs whenever the offending line containing mismatched bold/italic is preceded by an image, a template, or any line of wikitext. It doesn't occur if the offending line is the first line of the article.