[GH-ISSUE #2781] [Bug] Importing document using text and markdown treats codeblock in markdown as plain text #1196

Closed
opened 2026-03-23 20:46:19 +00:00 by mirror · 2 comments
Owner

Originally created by @Mukund-Tandon on GitHub (Jun 12, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/2781

Originally assigned to: @Mukund-Tandon on GitHub.

Bug Description

When importing a document using the text and markdown option the code block which is supported in AppFlowy is treated like regular text . Like shown below-
Screenshot 2023-06-12 at 11 56 31 AM

How to Reproduce

Import from a markdown file that has a code block

Expected Behavior

Should display a code block like -
Screenshot 2023-06-12 at 12 10 46 PM

Operating System

MacOs

AppFlowy Version(s)

0.2.1

Screenshots

No response

Additional Context

No response

Originally created by @Mukund-Tandon on GitHub (Jun 12, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/2781 Originally assigned to: @Mukund-Tandon on GitHub. ### Bug Description When importing a document using the text and markdown option the code block which is supported in AppFlowy is treated like regular text . Like shown below- <img width="636" alt="Screenshot 2023-06-12 at 11 56 31 AM" src="https://github.com/AppFlowy-IO/AppFlowy/assets/71614009/3a11621f-8b3c-46ea-8008-482480da5424"> ### How to Reproduce Import from a markdown file that has a code block ### Expected Behavior Should display a code block like - <img width="741" alt="Screenshot 2023-06-12 at 12 10 46 PM" src="https://github.com/AppFlowy-IO/AppFlowy/assets/71614009/5a43ba12-d4bb-4080-ad01-3ca43d1ca878"> ### Operating System MacOs ### AppFlowy Version(s) 0.2.1 ### Screenshots _No response_ ### Additional Context _No response_
mirror 2026-03-23 20:46:19 +00:00
Author
Owner

@Mukund-Tandon commented on GitHub (Jun 12, 2023):

@LucasXu0, Could you please assign this issue to me.

<!-- gh-comment-id:1586873244 --> @Mukund-Tandon commented on GitHub (Jun 12, 2023): @LucasXu0, Could you please assign this issue to me.
Author
Owner

@annieappflowy commented on GitHub (Jun 12, 2023):

Assigned

<!-- gh-comment-id:1586900804 --> @annieappflowy commented on GitHub (Jun 12, 2023): Assigned
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#1196
No description provided.