Page MenuHomePhabricator

In Parsoid, when page contains __NOCONTENTCONVERT__, text inside `-{}-` should be rendered.
Open, Needs TriagePublicBUG REPORT

Description

WIKITEXT:

Џордан код нас је Мајкл Џордан, не бугарски певач -{Джордан}-.

ACTUAL:

Џордан код нас је Мајкл Џордан, не бугарски певач .

EXPECTED:

Џордан код нас је Мајкл Џордан, не бугарски певач Джордан.

Basically, if NOCC is used, text inside -{}- should be still processed and rendered.

Event Timeline

Djido renamed this task from In Parsoid, when page contains __NOCONTENTCONVERT__, text inside no- to In Parsoid, when page contains __NOCONTENTCONVERT__, text inside `-{}-` should be rendered..Jun 13 2026, 1:07 AM

Change #1301470 had a related patch set uploaded (by Akaza24; author: Akaza24):

[mediawiki/services/parsoid@master] Render -{}- text when __NOCONTENTCONVERT__ is active

https://gerrit.wikimedia.org/r/1301470

Seems related to T424391: Parsoid Language Converter doesn't convert rules inside -{ ... }- markup. Should be fixed in the core language converter implementation (T380517) not the Parsoid implementation, which will be removed shortly (T424409).

Note that the existing legacy behavior is to render this as -{Джордан}- -- that is, the actual -{ and }- brackets are rendered as well as the contents. The requested Parsoid behavior doesn't exactly match legacy behavior.

Change #1305014 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/core@master] ParsoidLanguageConverter: render text inside -{}- when __NOCONTENTCONVERT__

https://gerrit.wikimedia.org/r/1305014

Note that the existing legacy behavior is to render this as -{Джордан}- -- that is, the actual -{ and }- brackets are rendered as well as the contents. The requested Parsoid behavior doesn't exactly match legacy behavior.

Legacy behavior also looks broken to me. This -{}- should be honored as any other markup.

Change #1301470 abandoned by Thiemo Kreuz (WMDE):

[mediawiki/services/parsoid@master] Render -{}- text when __NOCONTENTCONVERT__ is active

Reason:

Apparently superseded by Ibfb56a2.

https://gerrit.wikimedia.org/r/1301470