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

[Bug] missing text when export to markdown or pdf

Open Ray8716397 opened this issue 4 months ago • 3 comments

Bug Description

There are some texts are missing when i export to markdown or pdf

How to Reproduce

cd appflowy-editor/example flutter run -d linux

import from document json export to markdown|pdf

files: tttt.json

tttt.md

Expected Behavior

should be the same

Operating System

ubuntu24

AppFlowy Editor Version(s)

latetest

Screenshots

Image Image

Additional Context

No response

Ray8716397 avatar Aug 05 '25 08:08 Ray8716397

same too

chenjun1127 avatar Aug 14 '25 03:08 chenjun1127

Which function did you call to convert the document to Markdown?

Image

LucasXu0 avatar Aug 25 '25 02:08 LucasXu0

Which function did you call to convert the document to Markdown?

Image

this function,appflowy-editor/example/lib/home_page.dart(line386): void _exportFile( EditorState editorState, ExportFileType fileType, ) async { var result = '';

switch (fileType) {
  case ExportFileType.documentJson:
    result = jsonEncode(editorState.document.toJson());
    break;
  case ExportFileType.markdown:
    result = documentToMarkdown(editorState.document);

oh I see the result value is correct by print(result), but why the md text display on the app are not correct after i click the 'Export to Markdown' button

Image

Ray8716397 avatar Aug 25 '25 08:08 Ray8716397