[PR #2415] [MERGED] Support quote block #5224

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/2415
Author: @qinluhe
Created: 5/2/2023
Status: Merged
Merged: 5/3/2023
Merged by: @qinluhe

Base: developHead: feat/quote-block


📝 Commits (2)

📊 Changes

15 files changed (+139 additions, -23 deletions)

View changed files

📝 frontend/appflowy_tauri/src/appflowy_app/components/_shared/database-hooks/loadField.ts (+3 -3)
📝 frontend/appflowy_tauri/src/appflowy_app/components/document/DocumentTitle/index.tsx (+1 -1)
📝 frontend/appflowy_tauri/src/appflowy_app/components/document/Node/NodeChildren.tsx (+2 -2)
📝 frontend/appflowy_tauri/src/appflowy_app/components/document/Node/index.tsx (+5 -1)
frontend/appflowy_tauri/src/appflowy_app/components/document/QuoteBlock/index.tsx (+20 -0)
📝 frontend/appflowy_tauri/src/appflowy_app/components/document/TextBlock/index.tsx (+1 -1)
📝 frontend/appflowy_tauri/src/appflowy_app/components/document/TextBlock/useMarkDown.hooks.ts (+27 -4)
📝 frontend/appflowy_tauri/src/appflowy_app/components/document/TodoListBlock/index.tsx (+1 -1)
📝 frontend/appflowy_tauri/src/appflowy_app/constants/document/config.ts (+7 -1)
📝 frontend/appflowy_tauri/src/appflowy_app/interfaces/document.ts (+7 -0)
frontend/appflowy_tauri/src/appflowy_app/stores/reducers/document/async-actions/blocks/quote.ts (+31 -0)
📝 frontend/appflowy_tauri/src/appflowy_app/utils/document/blocks/common.ts (+10 -1)
📝 frontend/appflowy_tauri/src/appflowy_app/utils/document/blocks/heading.ts (+4 -8)
frontend/appflowy_tauri/src/appflowy_app/utils/document/blocks/quote.ts (+11 -0)
📝 frontend/appflowy_tauri/src/appflowy_app/utils/document/slate/markdown.ts (+9 -0)

📄 Description

This PR is based on 2413 and needs to be merged with 2413 first

Feature Preview

  • Support turn into quote block from "
image

PR Checklist

  • My code adheres to the AppFlowy Style Guide
  • 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/2415 **Author:** [@qinluhe](https://github.com/qinluhe) **Created:** 5/2/2023 **Status:** ✅ Merged **Merged:** 5/3/2023 **Merged by:** [@qinluhe](https://github.com/qinluhe) **Base:** `develop` ← **Head:** `feat/quote-block` --- ### 📝 Commits (2) - [`57d28be`](https://github.com/AppFlowy-IO/AppFlowy/commit/57d28bec8a1a9a035576bd520dffe7d08effe7af) feat: support quote block - [`075f3aa`](https://github.com/AppFlowy-IO/AppFlowy/commit/075f3aac60eaa100a0851a9a447922d46db6c341) fix: database ts error ### 📊 Changes **15 files changed** (+139 additions, -23 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_tauri/src/appflowy_app/components/_shared/database-hooks/loadField.ts` (+3 -3) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/document/DocumentTitle/index.tsx` (+1 -1) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/document/Node/NodeChildren.tsx` (+2 -2) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/document/Node/index.tsx` (+5 -1) ➕ `frontend/appflowy_tauri/src/appflowy_app/components/document/QuoteBlock/index.tsx` (+20 -0) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/document/TextBlock/index.tsx` (+1 -1) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/document/TextBlock/useMarkDown.hooks.ts` (+27 -4) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/document/TodoListBlock/index.tsx` (+1 -1) 📝 `frontend/appflowy_tauri/src/appflowy_app/constants/document/config.ts` (+7 -1) 📝 `frontend/appflowy_tauri/src/appflowy_app/interfaces/document.ts` (+7 -0) ➕ `frontend/appflowy_tauri/src/appflowy_app/stores/reducers/document/async-actions/blocks/quote.ts` (+31 -0) 📝 `frontend/appflowy_tauri/src/appflowy_app/utils/document/blocks/common.ts` (+10 -1) 📝 `frontend/appflowy_tauri/src/appflowy_app/utils/document/blocks/heading.ts` (+4 -8) ➕ `frontend/appflowy_tauri/src/appflowy_app/utils/document/blocks/quote.ts` (+11 -0) 📝 `frontend/appflowy_tauri/src/appflowy_app/utils/document/slate/markdown.ts` (+9 -0) </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). --> This PR is based on [2413](https://github.com/AppFlowy-IO/AppFlowy/pull/2413) and needs to be merged with [2413](https://github.com/AppFlowy-IO/AppFlowy/pull/2413) first <!--- 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] Support turn into quote block from `" ` <img width="452" alt="image" src="https://user-images.githubusercontent.com/108015703/235601797-09be51b2-82ea-440a-9c03-c9ba9fcc2923.png"> <!--- 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 the [AppFlowy Style Guide](https://appflowy.gitbook.io/docs/essential-documentation/contribute-to-appflowy/software-contributions/submitting-code/style-guides) - [ ] 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:17: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#5224
No description provided.