appflowy-editor icon indicating copy to clipboard operation
appflowy-editor copied to clipboard

[Bug] Breaks ignored when converting HTML

Open chimon2000 opened this issue 1 year ago • 3 comments

Bug Description

When converting an HTML document to an editor document, breaks are stripped from the editor document.

How to Reproduce

Attempt to reimport HTML that is exported from the editor and includes br tags.

Expected Behavior

Break tags are properly parsed into empty lines.

Operating System

MacOS

AppFlowy Editor Version(s)

2.3.4

Screenshots

No response

Additional Context

No response

chimon2000 avatar May 15 '24 17:05 chimon2000

I confirm, html code:

final String htmlDoc = r'''
<p>first<br />second<br /><strong>bold</strong>,<em>italic</em><br /><em><strong>BITALIC</strong></em></p>
''';

converted into single line: firstsecondbold,italicBITALIC

iBog avatar Aug 01 '24 14:08 iBog