Page MenuHomePhabricator

Parsoid generates nowikis when changing bold or italic to bold italic when adjacent to bold or italic
Closed, ResolvedPublic

Description

See https://en.wikipedia.org/w/index.php?title=User%3AThryduulf%2Fsandbox&diff=568630656&oldid=568630416

live case last change at: https://en.wikipedia.org/w/index.php?title=Telephone_numbers_in_Bulgaria&diff=prev&oldid=568571770

When bold (or italic) text is separated from italic (or bold) text by a space and the editor selects that space when converting the first block to bold italic in VE, then Parsoid adds the markup around the selected block, replaces the space with a <nowiki/> and then adds a space between the starting bold/italic markup and the text for the second section.

In other cases with bold italic adjacent to italic it generates
'''''bold itlaic''''''' italic''
which renders the bold italic text as bold italic followed by '' and the italic text as plain.

Desirable markup:
'''''bold italic''' italic''

ps: sorry for the awkward bug title


Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=52254

Details

Reference
bz52876

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:47 AM
bzimport added a project: Parsoid.
bzimport set Reference to bz52876.
  • This bug has been marked as a duplicate of bug 42803 ***