Page MenuHomePhabricator

Paragraph ends are not detected after a hybrid nested list
Open, Needs TriagePublicBUG REPORT

Description

Wikitext
<ol><li>
*Nested list</li></ol>

Paragraph 1

Paragraph 2
Actual HTML output
<ol><li>
<ul><li>Nested list</li></ul></li></ol><p>

Paragraph 1

Paragraph 2</p>
Expected HTML output
<ol><li>
<ul><li>Nested list</li></ul></li></ol>
<p>Paragraph 1
</p><p>Paragraph 2
</p>

Version: 1.34.0-wmf.19 (rMW5d54761bb099) 19:03, 28 August 2019 (en.wikipedia.org)

Related Objects

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 2 2019, 8:18 PM

Some observations: If the wikitext is slightly modified, the problem will go away:

Surround <ol> with a <div> → works as expected
<div><ol><li>
*Nested list</li></ol></div>

Paragraph 1

Paragraph 2
Add a linebreak before </li> → works as expected
<ol><li>
*Nested list
</li></ol>

Paragraph 1

Paragraph 2
Add a linebreak before </ol> → works as expected
<ol><li>
*Nested list</li>
</ol>

Paragraph 1

Paragraph 2