Page MenuHomePhabricator

Colon rendered as plaintext when on a line with definition list from template
Open, LowPublic

Assigned To
None
Authored By
Cirdan
Sep 16 2018, 7:33 AM
Referenced Files
F25970620: image.png
Sep 17 2018, 2:28 PM
F25911523: grafik.png
Sep 16 2018, 7:33 AM
F25911516: grafik.png
Sep 16 2018, 7:33 AM
F25911533: grafik.png
Sep 16 2018, 7:33 AM

Description

As reported here (permalink):

In this old version the list of characters is formatted as follows:

grafik.png (724×1 px, 93 KB)

When editing the article in VE, however, it looks like this:

grafik.png (823×1 px, 108 KB)

A look at the sourcecode reveals that there is a slight difference between the definition list entries, and adding a newline in the third entry indeed results in the VE's rendering matching the final result:

grafik.png (851×1 px, 97 KB)

Event Timeline

The definition list is in fact a series of templates. Accordingly we provide a way to insert content between them with an "Insert paragraph button":

image.png (253×720 px, 57 KB)

This is correct and desired behaviour.

I believe we are talking about two different issues here?

This task is about the bold formatting of the third entry:

grafik.png (823×1 px, 108 KB)

matmarex subscribed.

The issue is also present in plain Parsoid output outside of VisualEditor: https://de.wikipedia.org/api/rest_v1/page/html/Hataraku_Saibō/180941247

For some reason the : is parsed as text rather than as the beginning of the <dd> element.

A reduced test case is {{1x|;hi}}:ho, which is closer to what's happening in T99843

The colon is tokenized as a string, only to find out later (after template expansion) that we're in a single-line definition list context

Arlolra renamed this task from VisualEditor's rendering of a definition list differs from final result to Colon rendered as plaintext when on a line with definition list from template.Sep 17 2018, 7:47 PM
Arlolra triaged this task as Low priority.

I believe we are talking about two different issues here?

Ah, I see. I misread your comment about adding a new paragraph.