[PR #5721] [MERGED] fix: ai chat result contains html escape text #6966

Closed
opened 2026-03-23 23:17:29 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/5721
Author: @LucasXu0
Created: 7/11/2024
Status: Merged
Merged: 7/11/2024
Merged by: @LucasXu0

Base: mainHead: launch_review_064


📝 Commits (5)

  • 484478f fix: ai chat result contains html escape text
  • 9b1872a feat: support copy the code block from ai chat page
  • 4f83d23 feat: support copy code block from ai chat page
  • e750b46 fix: add hover effect to color picker button
  • deabe05 chore: increase minimum window size

📊 Changes

11 files changed (+57 additions, -38 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/ai_message_bubble.dart (+2 -2)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_markdown_text.dart (+2 -6)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/code_block/code_block_copy_button.dart (+16 -5)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/copy_and_paste/custom_paste_command.dart (+2 -2)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/parsers/markdown_code_parser.dart (+1 -3)
frontend/appflowy_flutter/lib/shared/markdown_to_document.dart (+11 -0)
📝 frontend/appflowy_flutter/lib/startup/tasks/app_window_size_manager.dart (+2 -2)
📝 frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/import/import_panel.dart (+2 -8)
📝 frontend/appflowy_flutter/lib/workspace/presentation/settings/shared/document_color_setting_button.dart (+16 -7)
📝 frontend/appflowy_flutter/pubspec.lock (+2 -2)
📝 frontend/appflowy_flutter/pubspec.yaml (+1 -1)

📄 Description

Feature Preview

  • ai chat result contains html escape text
  • code blocks in ai chat page always have an empty line
  • copy and paste the code with format

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/5721 **Author:** [@LucasXu0](https://github.com/LucasXu0) **Created:** 7/11/2024 **Status:** ✅ Merged **Merged:** 7/11/2024 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `launch_review_064` --- ### 📝 Commits (5) - [`484478f`](https://github.com/AppFlowy-IO/AppFlowy/commit/484478f057cadfcf2b08249644f5da48e620b154) fix: ai chat result contains html escape text - [`9b1872a`](https://github.com/AppFlowy-IO/AppFlowy/commit/9b1872a17059dd38824789ce46f1401a88016669) feat: support copy the code block from ai chat page - [`4f83d23`](https://github.com/AppFlowy-IO/AppFlowy/commit/4f83d23219c702023c9a6dfcc9563116c98698f0) feat: support copy code block from ai chat page - [`e750b46`](https://github.com/AppFlowy-IO/AppFlowy/commit/e750b46ef84e7e68aa39396e0159164d67fbcc47) fix: add hover effect to color picker button - [`deabe05`](https://github.com/AppFlowy-IO/AppFlowy/commit/deabe056931ff510f4f21e15c6aa7fda3f01582a) chore: increase minimum window size ### 📊 Changes **11 files changed** (+57 additions, -38 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/ai_message_bubble.dart` (+2 -2) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_markdown_text.dart` (+2 -6) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/code_block/code_block_copy_button.dart` (+16 -5) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/copy_and_paste/custom_paste_command.dart` (+2 -2) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/parsers/markdown_code_parser.dart` (+1 -3) ➕ `frontend/appflowy_flutter/lib/shared/markdown_to_document.dart` (+11 -0) 📝 `frontend/appflowy_flutter/lib/startup/tasks/app_window_size_manager.dart` (+2 -2) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/import/import_panel.dart` (+2 -8) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/settings/shared/document_color_setting_button.dart` (+16 -7) 📝 `frontend/appflowy_flutter/pubspec.lock` (+2 -2) 📝 `frontend/appflowy_flutter/pubspec.yaml` (+1 -1) </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] ai chat result contains html escape text - [x] code blocks in ai chat page always have an empty line - [x] copy and paste the code with format <!--- 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) - [ ] 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 23:17:29 +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#6966
No description provided.