Skip to content

Lists items should not create nested paragraphs #25

Description

@madeleineostoja

Lists currently generate the following markup

Content:

- List item

Output:

<ul>
  <li>
    <p>List item</p>
  </li>
</ul>

It should generate this markup:

<ul>
  <li>List item</li>
</ul>

This is breaking for any case where you have other content inside list items and are expecting inline content (as would be intuitively expected). Case in point: custom list bullets in ::before elements on Simpla's Privacy Policy. Using simpla-article results in a newline between the bullet and the list item content, since paragraphs are blocks by default.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions