AppFlowy-IO / appflowy-editor

A highly customizable rich-text editor for Flutter. The AppFlowy Editor project for AppFlowy and beyond.
https://pub.dev/packages/appflowy_editor
Other
474 stars 202 forks source link

[Question] how to generate markdown or convert delta to markdown? #810

Open Romavic opened 5 months ago

Romavic commented 5 months ago

Bug Description

Question

How to Reproduce

Question

Expected Behavior

Question

Operating System

Android, Ios and Web

AppFlowy Editor Version(s)

Last versio

Screenshots

No response

Additional Context

No response

melatoninmei commented 4 months ago

If you're using Delta Quill format, a conversion example is here: https://github.com/AppFlowy-IO/appflowy-editor/blob/main/documentation/importing.md

If you're converting the document to and from markdown, you can do the following:

String markdownText = documentToMarkdown(document);
Document document = markdownToDocument(String: markdownText)