[PR #2046] [MERGED] fix : Code block parser implementation #5075

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/2046
Author: @gunjan-l
Created: 3/20/2023
Status: Merged
Merged: 3/23/2023
Merged by: @LucasXu0

Base: mainHead: supports_markdown_code_format_1834


📝 Commits (5)

📊 Changes

3 files changed (+41 additions, -1 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/plugins/document/application/share_bloc.dart (+2 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/plugins/parsers/code_block_node_parser.dart (+13 -0)
📝 frontend/appflowy_flutter/test/unit_test/editor/share_markdown_test.dart (+26 -1)

📄 Description

Description

Code block parser implementation to support markdown code format

Fixes #1834

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

🔄 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/2046 **Author:** [@gunjan-l](https://github.com/gunjan-l) **Created:** 3/20/2023 **Status:** ✅ Merged **Merged:** 3/23/2023 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `supports_markdown_code_format_1834` --- ### 📝 Commits (5) - [`8076ec1`](https://github.com/AppFlowy-IO/AppFlowy/commit/8076ec1a8c712f0b3e7d2d9919d19fb7e94868e9) fix: Code block implementation - [`5cc3a7a`](https://github.com/AppFlowy-IO/AppFlowy/commit/5cc3a7a922d9dba6b3b57b777bc86b3d3efd2d0c) fix: Added test to cover CodeBlock - [`dcd84f5`](https://github.com/AppFlowy-IO/AppFlowy/commit/dcd84f5798b50f0540026e2893618ac19a41ae85) fix: typos - [`983ee04`](https://github.com/AppFlowy-IO/AppFlowy/commit/983ee040cc0525e7d6878f4e00b80b63d380cac8) fix: Code block implementation - [`6aa7eac`](https://github.com/AppFlowy-IO/AppFlowy/commit/6aa7eacad53e37d6e4217de0a713a20cad56fc72) fix: typos ### 📊 Changes **3 files changed** (+41 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/plugins/document/application/share_bloc.dart` (+2 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/plugins/parsers/code_block_node_parser.dart` (+13 -0) 📝 `frontend/appflowy_flutter/test/unit_test/editor/share_markdown_test.dart` (+26 -1) </details> ### 📄 Description # Description Code block parser implementation to support markdown code format Fixes #1834 ## Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] This change requires a documentation update # Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings --- <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:07 +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#5075
No description provided.