Skip to content

Unordered List followed by Paragraph not rendering properly #318

Open

Description

@KrisChambers

Consider the following html:
<html><body><ul><li>Item 1</li></ul><p>Paragraph</p><p>P2</p></body></html>

Expected output:

  • Item 1

Paragraph

P2

Actual output:

  • Item1Paragrah

P2

Check Android and IOs at the this Snack Link

I would expect a new paragraph to be started after the list. As is the case for html rendered in the browser.

Hacky Solution:

  1. Manually add newlines after list
  2. while (html.indexOf("ul><p") > -1) { html = html.replace("><p", ">\n\n<p"); }

Activity

  1. SaruwatariSagittario commented on Apr 12, 2021

    @SaruwatariSagittario

    Hi, I'm also facing some issue when trying to render ul li html tags, is there any solution or workaround ?

  2. KrisChambers commented on Apr 16, 2021

    @KrisChambers
    Author

    In my case, the workaround has been to add line breaks (<br />) to the markup. The main issue for me seems to be the formatting of the list when sandwiched between paragraphs.

  3. Mihai-github commented on Aug 31, 2023

    @Mihai-github

    for me, a list of ul > li with many li tags breaks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions