[GH-ISSUE #168] [FR] support mermaid #88

Closed
opened 2026-03-23 20:31:42 +00:00 by mirror · 7 comments
Owner

Originally created by @Angel0726 on GitHub (Dec 16, 2021).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/168

1~3 main use cases of the proposed feature
mermaid: as we know many markdown editor support it
image

what types of users can benefit from using your proposed feature

Additional context
you can experience mermaid in siyuan note or vditor

Originally created by @Angel0726 on GitHub (Dec 16, 2021). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/168 **1~3 main use cases of the proposed feature** mermaid: as we know many markdown editor support it ![image](https://user-images.githubusercontent.com/32816780/145536914-04a32b67-598c-4f19-aa87-90dc94ad5fdc.png) **what types of users can benefit from using your proposed feature** **Additional context** you can experience mermaid in [siyuan note](https://b3log.org/siyuan/) or [vditor](https://github.com/Vanessa219/vditor/blob/master/demo/markdown/zh_CN.md)
mirror 2026-03-23 20:31:42 +00:00
Author
Owner

@hevey commented on GitHub (Nov 21, 2023):

I would be interested in taking on adding mermaid

<!-- gh-comment-id:1820254547 --> @hevey commented on GitHub (Nov 21, 2023): I would be interested in taking on adding mermaid
Author
Owner

@sebs commented on GitHub (Dec 7, 2023):

@hevey if you need someone to give it a test run and provide you feedback ... ping me.

<!-- gh-comment-id:1846129005 --> @sebs commented on GitHub (Dec 7, 2023): @hevey if you need someone to give it a test run and provide you feedback ... ping me.
Author
Owner

@khorshuheng commented on GitHub (Jan 20, 2025):

AppFlowy Web does provide support for Mermaid diagram now, but for the desktop app, we will need to see if there is a good flutter package that supports this.

<!-- gh-comment-id:2601245487 --> @khorshuheng commented on GitHub (Jan 20, 2025): AppFlowy Web does provide support for Mermaid diagram now, but for the desktop app, we will need to see if there is a good flutter package that supports this.
Author
Owner

@Xazin commented on GitHub (Jan 20, 2025):

AppFlowy Web does provide support for Mermaid diagram now, but for the desktop app, we will need to see if there is a good flutter package that supports this.

The issue with supporting mermaid in a non-web environment, is that mermaid is a JavaScript library.

For iOS and Android, we can't easily import and communicate with a JavaScript library.

If you can expose an API from the backend to generate a mermaid diagram, implementing it in the app would then become possible.

Since rendering a mermaid diagram is "merely" rendering a SVG.

<!-- gh-comment-id:2601894797 --> @Xazin commented on GitHub (Jan 20, 2025): > AppFlowy Web does provide support for Mermaid diagram now, but for the desktop app, we will need to see if there is a good flutter package that supports this. The issue with supporting mermaid in a non-web environment, is that mermaid is a JavaScript library. For iOS and Android, we can't easily import and communicate with a JavaScript library. If you can expose an API from the backend to generate a mermaid diagram, implementing it in the app would then become possible. Since rendering a mermaid diagram is "merely" rendering a SVG.
Author
Owner

@bbigras commented on GitHub (Jan 25, 2025):

For iOS and Android, we can't easily import and communicate with a JavaScript library.

Are you sure?

With a quick search I found https://developer.apple.com/documentation/javascriptcore and https://developer.android.com/develop/ui/views/layout/webapps/jsengine but have no idea if it works well.

<!-- gh-comment-id:2614124354 --> @bbigras commented on GitHub (Jan 25, 2025): > For iOS and Android, we can't easily import and communicate with a JavaScript library. Are you sure? With a quick search I found https://developer.apple.com/documentation/javascriptcore and https://developer.android.com/develop/ui/views/layout/webapps/jsengine but have no idea if it works well.
Author
Owner

@arigit commented on GitHub (Sep 7, 2025):

looking forward to seeing mermaid and draw.io support.

<!-- gh-comment-id:3263969485 --> @arigit commented on GitHub (Sep 7, 2025): looking forward to seeing mermaid and draw.io support.
Author
Owner

@annieappflowy commented on GitHub (Jan 5, 2026):

Supported in the upcoming release (v0.10.9)

Image
<!-- gh-comment-id:3708718756 --> @annieappflowy commented on GitHub (Jan 5, 2026): Supported in the upcoming release (v0.10.9) <img width="1073" height="724" alt="Image" src="https://github.com/user-attachments/assets/637f7da9-f5be-4cca-ae63-13c191abe46c" />
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#88
No description provided.