[PR #3811] [MERGED] feat: support converting documents to JSON, HTML, or TEXT. #5893

Closed
opened 2026-03-23 22:20:47 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/3811
Author: @qinluhe
Created: 10/27/2023
Status: Merged
Merged: 10/30/2023
Merged by: @appflowy

Base: mainHead: feat/copy-patse


📝 Commits (3)

  • 939be59 feat: support converting documents to JSON, HTML, or TEXT
  • b81b51e fix: modify the comment
  • c8e446e fix: modify the comment

📊 Changes

56 files changed (+2136 additions, -6 deletions)

View changed files

📝 frontend/appflowy_tauri/src/appflowy_app/stores/reducers/document/async-actions/turn_to.ts (+4 -4)
📝 frontend/rust-lib/event-integration/src/document/document_event.rs (+16 -0)
📝 frontend/rust-lib/event-integration/tests/document/local_test/test.rs (+33 -0)
📝 frontend/rust-lib/flowy-document2/Flowy.toml (+1 -1)
📝 frontend/rust-lib/flowy-document2/src/event_handler.rs (+47 -0)
📝 frontend/rust-lib/flowy-document2/src/event_map.rs (+47 -0)
frontend/rust-lib/flowy-document2/src/parser/constant.rs (+37 -0)
frontend/rust-lib/flowy-document2/src/parser/document_data_parser.rs (+180 -0)
📝 frontend/rust-lib/flowy-document2/src/parser/mod.rs (+4 -0)
frontend/rust-lib/flowy-document2/src/parser/parser_entities.rs (+481 -0)
frontend/rust-lib/flowy-document2/src/parser/utils.rs (+167 -0)
frontend/rust-lib/flowy-document2/tests/assets/html/bulleted_list.html (+1 -0)
frontend/rust-lib/flowy-document2/tests/assets/html/callout.html (+6 -0)
frontend/rust-lib/flowy-document2/tests/assets/html/code.html (+5 -0)
frontend/rust-lib/flowy-document2/tests/assets/html/divider.html (+1 -0)
frontend/rust-lib/flowy-document2/tests/assets/html/heading.html (+1 -0)
frontend/rust-lib/flowy-document2/tests/assets/html/image.html (+1 -0)
frontend/rust-lib/flowy-document2/tests/assets/html/math_equation.html (+1 -0)
frontend/rust-lib/flowy-document2/tests/assets/html/numbered_list.html (+1 -0)
frontend/rust-lib/flowy-document2/tests/assets/html/paragraph.html (+6 -0)

...and 36 more files

📄 Description

Feature Preview

  • Supports a convert document interface, with selection parameters for outputting JSON/HTML/TEXT within the selection

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/3811 **Author:** [@qinluhe](https://github.com/qinluhe) **Created:** 10/27/2023 **Status:** ✅ Merged **Merged:** 10/30/2023 **Merged by:** [@appflowy](https://github.com/appflowy) **Base:** `main` ← **Head:** `feat/copy-patse` --- ### 📝 Commits (3) - [`939be59`](https://github.com/AppFlowy-IO/AppFlowy/commit/939be59487052df00c5c442785dc9c4055e90c28) feat: support converting documents to JSON, HTML, or TEXT - [`b81b51e`](https://github.com/AppFlowy-IO/AppFlowy/commit/b81b51edcce051abb1fc221fac018b810afa024f) fix: modify the comment - [`c8e446e`](https://github.com/AppFlowy-IO/AppFlowy/commit/c8e446eac2995af104eb93fa2b6e551d71667d45) fix: modify the comment ### 📊 Changes **56 files changed** (+2136 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_tauri/src/appflowy_app/stores/reducers/document/async-actions/turn_to.ts` (+4 -4) 📝 `frontend/rust-lib/event-integration/src/document/document_event.rs` (+16 -0) 📝 `frontend/rust-lib/event-integration/tests/document/local_test/test.rs` (+33 -0) 📝 `frontend/rust-lib/flowy-document2/Flowy.toml` (+1 -1) 📝 `frontend/rust-lib/flowy-document2/src/event_handler.rs` (+47 -0) 📝 `frontend/rust-lib/flowy-document2/src/event_map.rs` (+47 -0) ➕ `frontend/rust-lib/flowy-document2/src/parser/constant.rs` (+37 -0) ➕ `frontend/rust-lib/flowy-document2/src/parser/document_data_parser.rs` (+180 -0) 📝 `frontend/rust-lib/flowy-document2/src/parser/mod.rs` (+4 -0) ➕ `frontend/rust-lib/flowy-document2/src/parser/parser_entities.rs` (+481 -0) ➕ `frontend/rust-lib/flowy-document2/src/parser/utils.rs` (+167 -0) ➕ `frontend/rust-lib/flowy-document2/tests/assets/html/bulleted_list.html` (+1 -0) ➕ `frontend/rust-lib/flowy-document2/tests/assets/html/callout.html` (+6 -0) ➕ `frontend/rust-lib/flowy-document2/tests/assets/html/code.html` (+5 -0) ➕ `frontend/rust-lib/flowy-document2/tests/assets/html/divider.html` (+1 -0) ➕ `frontend/rust-lib/flowy-document2/tests/assets/html/heading.html` (+1 -0) ➕ `frontend/rust-lib/flowy-document2/tests/assets/html/image.html` (+1 -0) ➕ `frontend/rust-lib/flowy-document2/tests/assets/html/math_equation.html` (+1 -0) ➕ `frontend/rust-lib/flowy-document2/tests/assets/html/numbered_list.html` (+1 -0) ➕ `frontend/rust-lib/flowy-document2/tests/assets/html/paragraph.html` (+6 -0) _...and 36 more files_ </details> ### 📄 Description <!--- Thank you for submitting a pull request to AppFlowy. The team will dedicate their best efforts to reviewing and approving your pull request. If you have any questions about the project or feedback for us, please join our [Discord](https://discord.gg/wdjWUXXhtw). --> <!--- If your pull request adds a new feature, please drag and drop a video into this section to showcase what you've done! If not, you may delete this section. --> ### Feature Preview - [x] Supports a convert document interface, with selection parameters for outputting JSON/HTML/TEXT within the selection <!--- 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 - [ ] My code adheres to [AppFlowy's Conventions](https://docs.appflowy.io/docs/documentation/software-contributions/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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 22:20:47 +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#5893
No description provided.