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

List Conversion Issues in HTML Output #459

Open
dominikkeller opened this issue Feb 6, 2025 · 0 comments
Open

List Conversion Issues in HTML Output #459

dominikkeller opened this issue Feb 6, 2025 · 0 comments

Comments

@dominikkeller
Copy link

Description

When converting content that contains nested ordered and unordered lists from Fleather to HTML, the resulting HTML does not correctly represent the intended list structure. This issue appears under two conditions:

  • When there is a newline between the two lists.

  • When there is no newline between the two lists.

Steps to Reproduce

  1. Create an Ordered List
  • Item 1: Level 1 - “1”
  • Item 2: Level 1 - “2”
  • Item 3: Level 2 - “1”
  1. Create an Unordered List (Placed Below the Ordered List)
  • Item 1: Level 1 - “1”
  • Item 2: Level 2 - “1”
  1. Convert the Document to HTML with ParchmentHtmlCodec.encode()

Environment

OS: macOS 15.2
Flutter 3.27.2
Fleather 1.19.0

Issue 1 - No Newline Between the Lists

In The Editor:

Image

HTML Output:

Image

Issue 2 - Newline Between the Lists

In The Editor:

Image

HTML Output:

Image

It appears that there is a problem with how Fleather encodes nested lists/lists that are below each other into HTML. The bug differs based on whether a newline exists between the ordered and unordered lists, leading to inconsistent HTML output.

Any insights or fixes to ensure consistent HTML conversion for both scenarios would be greatly appreciated.

@amantoux amantoux added the bug Something isn't working label Feb 6, 2025
@Amir-P Amir-P removed the bug Something isn't working label Feb 10, 2025
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