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

[Bug] htmlToDocument #1005

Open
springlo opened this issue Dec 27, 2024 · 0 comments
Open

[Bug] htmlToDocument #1005

springlo opened this issue Dec 27, 2024 · 0 comments

Comments

@springlo
Copy link

springlo commented Dec 27, 2024

Bug Description

Bold tag error

How to Reproduce

html like this:

<h1>AppFlowyEditor</h1>
<b>Bold tag</b>
<p>You can also use</p>
<strong><em>AppFlowy Editor</em></strong> 

final html = htmlToDocument(htmlString);
then print(html.toJson()):

flutter: {document: {type: page, children: [{type: heading, data: {delta: [{insert: AppFlowyEditor}], level: 1}}, {type: paragraph, data: {delta: [{insert: Bold tag, attributes: {bold: true}}]}}, {type: paragraph, data: {delta: [{insert: You can also use}]}}, {type: paragraph, data: {delta: [{insert: Bold tag, attributes: {bold: true}}, {insert: AppFlowy Editor, attributes: {bold: true, italic: true}}]}}]}}

Expected Behavior

rt

Operating System

iOS

AppFlowy Editor Version(s)

Master

Screenshots

No response

Additional Context

No response

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

1 participant