Page MenuHomePhabricator

HTML with multile content in list items isn't serialized "properly"
Open, LowPublic

Description

10:19:08 AM - James_F: What does <li><p>Foo</p><p>Bar</p></li> convert into?
10:20:00 AM - arlolra: * Foo  Bar
10:20:07 AM - James_F: Eww.
10:20:20 AM - arlolra: what do expect?
10:20:24 AM - arlolra: because
10:20:29 AM - arlolra: * Foo
10:20:30 AM - arlolra: Bar
10:20:58 AM - James_F: I /think/ the "standard" human-written wikitext for that would be "* Foo<p>Bar</p>" (which is terrible).
10:21:05 AM - arlolra: is going to parse to <ul><li>Foo</li></ul><p>Bar</p> right
10:21:14 AM - James_F: Or "* Foo<br/>Bar" which is worse.
10:21:17 AM - James_F: Yes.
10:21:25 AM - James_F: (Aka wikitext sucks.)
10:22:05 AM - arlolra: maybe our /\n/ -> " " is too naive
10:22:11 AM - James_F: Maybe?
10:22:35 AM - arlolra: ha

Event Timeline

Arlolra raised the priority of this task from to Medium.
Arlolra updated the task description. (Show Details)
Arlolra added a project: Parsoid.
Arlolra added subscribers: Arlolra, Jdforrester-WMF.
[subbu@earth lib] echo "*a<p>foo</p>" | node parse --normalize

<ul>
<li>a
<p>foo</p>
</li>
</ul>

@ssastry changes his name to @ssastry-onvacation

@ssastry changes his name to @ssastry-onvacation

When travelling on a bus with free wifi .. hard not to check email and respond to a few. ;-)

ssastry lowered the priority of this task from Medium to Low.Mar 11 2020, 3:40 AM
ssastry updated the task description. (Show Details)

This can be handled when multiline content support in list items is added.

ssastry renamed this task from Suppressed separators too naive to HTML with multile content in list items isn't serialized "properly".Mar 11 2020, 3:42 AM
ssastry moved this task from html2wt to Feature requests on the Parsoid board.