AppFlowy-IO / AppFlowy-IO/appflowy-editor

[Bug] htmlToDocument

Aperta
#1,005 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Dart
Stelle
684
Fork
329
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### Bug Description

Bold tag error

### How to Reproduce

html like this:
```

AppFlowyEditor


Bold tag

You can also use


AppFlowy Editor
```

``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_

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.