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

Nested list not rendering #1441

Open
Lazy-Lad opened this issue Jun 5, 2024 · 4 comments
Open

Nested list not rendering #1441

Lazy-Lad opened this issue Jun 5, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@Lazy-Lad
Copy link

Lazy-Lad commented Jun 5, 2024

Expected Behavior

If we we have a list with a sublist in it it should render as it is,

  1. List item 1
    a. sub item 1

Actual Behavior

  1. List item
  2. Sub item

Steps to Reproduce

Use any RTE to get the HTML code and render it using ReactHTMLParser

@Lazy-Lad Lazy-Lad added the bug Something isn't working label Jun 5, 2024
@remarkablemark
Copy link
Owner

@Lazy-Lad Can you provide a reproducible example?

@mhNirob
Copy link

mhNirob commented Jul 8, 2024

I am getting the same issue in my project.
For example, for this HTML input - <strong>Key Products</strong></p><ul><li><strong>WPManageNinja</strong></li><li><strong>FluentForms</strong></li><li><strong>Ninja Tables</strong></li></ul><p><br></p><p>

Expected output:
Screenshot 2024-07-08 at 11 09 26 AM

But the output I am getting:
Screenshot 2024-07-08 at 11 10 38 AM

@remarkablemark
Copy link
Owner

@mhNirob can you provide a reproducible example using StackBlitz?

@mhNirob
Copy link

mhNirob commented Jul 8, 2024

@remarkablemark couldn't reproduce this issue from StackBlitz. Strange! It's working fine there but not in my project.
I am still trying to figure it out, I will let you know here if I find something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants