Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unordered List followed by Paragraph not rendering properly #318

Open
KrisChambers opened this issue Apr 2, 2021 · 3 comments
Open

Unordered List followed by Paragraph not rendering properly #318

KrisChambers opened this issue Apr 2, 2021 · 3 comments

Comments

@KrisChambers
Copy link

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"); }
@SaruwatariSagittario
Copy link

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

@KrisChambers
Copy link
Author

KrisChambers commented Apr 16, 2021

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.

@Mihai-github
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants