[PR #7333] [MERGED] fix: support exporting more content to markdown #7841

Closed
opened 2026-03-23 23:21:26 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/7333
Author: @asjqkkkk
Created: 2/7/2025
Status: Merged
Merged: 2/11/2025
Merged by: @LucasXu0

Base: mainHead: fix/markdown


📝 Commits (6)

  • df6d646 fix: support exporting to markdown with multiple images
  • b18b0a4 fix: support exporting to markdown with database
  • 8a22c2a fix: support exporting to markdown with date or reminder
  • 56afe30 fix: support exporting to markdown with subpage and page reference
  • d042130 chore: add some testing for markdown parser
  • 24a3eb8 chore: add testing for exporting markdown with databse as csv

📊 Changes

14 files changed (+383 additions, -28 deletions)

View changed files

📝 frontend/appflowy_flutter/integration_test/desktop/uncategorized/share_markdown_test.dart (+50 -8)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/ask_ai_toolbar_item.dart (+2 -2)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/util/ask_ai_node_extension.dart (+2 -2)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/multi_image_block_component/multi_image_block_component.dart (+3 -2)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/parsers/custom_image_node_parser.dart (+66 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/parsers/custom_paragraph_node_parser.dart (+37 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/parsers/database_node_parser.dart (+53 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/parsers/document_markdown_parsers.dart (+2 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/parsers/sub_page_node_parser.dart (+20 -0)
📝 frontend/appflowy_flutter/lib/plugins/shared/share/export_tab.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/plugins/shared/share/share_bloc.dart (+12 -2)
📝 frontend/appflowy_flutter/lib/shared/markdown_to_document.dart (+60 -3)
📝 frontend/appflowy_flutter/lib/workspace/application/export/document_exporter.dart (+12 -5)
📝 frontend/appflowy_flutter/test/unit_test/markdown/markdown_parser_test.dart (+63 -3)

📄 Description

To fix #3343

  • support exporting multiple images
  • support exporting database as csv file
  • support exporting date or reminder
  • support exporting subpage and page reference as link
  • export markdown-related files as a zip file

Feature Preview


PR Checklist

  • My code adheres to AppFlowy's Conventions
  • I've listed at least one issue that this PR fixes in the description above.
  • I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes.
  • All existing tests are passing.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AppFlowy-IO/AppFlowy/pull/7333 **Author:** [@asjqkkkk](https://github.com/asjqkkkk) **Created:** 2/7/2025 **Status:** ✅ Merged **Merged:** 2/11/2025 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `fix/markdown` --- ### 📝 Commits (6) - [`df6d646`](https://github.com/AppFlowy-IO/AppFlowy/commit/df6d6465305e6b0277c096d2010d671a11e55a5c) fix: support exporting to markdown with multiple images - [`b18b0a4`](https://github.com/AppFlowy-IO/AppFlowy/commit/b18b0a41bb9be8cbd36edba82a4344c5711cc113) fix: support exporting to markdown with database - [`8a22c2a`](https://github.com/AppFlowy-IO/AppFlowy/commit/8a22c2a07f68f827946a8ee38e1e2f4a7c0a2777) fix: support exporting to markdown with date or reminder - [`56afe30`](https://github.com/AppFlowy-IO/AppFlowy/commit/56afe301fac046b525f317e64ff59777fd6cf181) fix: support exporting to markdown with subpage and page reference - [`d042130`](https://github.com/AppFlowy-IO/AppFlowy/commit/d04213086f3b8be638cf5cdb7c46303935104ef0) chore: add some testing for markdown parser - [`24a3eb8`](https://github.com/AppFlowy-IO/AppFlowy/commit/24a3eb80547d535fc90a57f0b4452e9eef123f42) chore: add testing for exporting markdown with databse as csv ### 📊 Changes **14 files changed** (+383 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/integration_test/desktop/uncategorized/share_markdown_test.dart` (+50 -8) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/ask_ai_toolbar_item.dart` (+2 -2) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/util/ask_ai_node_extension.dart` (+2 -2) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/multi_image_block_component/multi_image_block_component.dart` (+3 -2) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/parsers/custom_image_node_parser.dart` (+66 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/parsers/custom_paragraph_node_parser.dart` (+37 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/parsers/database_node_parser.dart` (+53 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/parsers/document_markdown_parsers.dart` (+2 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/parsers/sub_page_node_parser.dart` (+20 -0) 📝 `frontend/appflowy_flutter/lib/plugins/shared/share/export_tab.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/plugins/shared/share/share_bloc.dart` (+12 -2) 📝 `frontend/appflowy_flutter/lib/shared/markdown_to_document.dart` (+60 -3) 📝 `frontend/appflowy_flutter/lib/workspace/application/export/document_exporter.dart` (+12 -5) 📝 `frontend/appflowy_flutter/test/unit_test/markdown/markdown_parser_test.dart` (+63 -3) </details> ### 📄 Description To fix #3343 - support exporting multiple images - support exporting database as csv file - support exporting date or reminder - support exporting subpage and page reference as link - export markdown-related files as a zip file ### Feature Preview <!--- List at least one issue here that this PR addresses. If it fixes the issue, please use the [fixes](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests) keyword to close the issue. For example: fixes https://github.com/AppFlowy-IO/AppFlowy/pull/2106 --> --- <!--- Before you mark this PR ready for review, run through this checklist! --> #### PR Checklist - [x] My code adheres to [AppFlowy's Conventions](https://docs.appflowy.io/docs/documentation/software-contributions/conventions) - [x] I've listed at least one issue that this PR fixes in the description above. - [x] I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes. - [ ] All existing tests are passing. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 23:21:26 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#7841
No description provided.