Skip to content

Add Mermaid language support#407

Merged
heyman merged 4 commits intoheyman:mainfrom
LSauce:main
Jan 9, 2026
Merged

Add Mermaid language support#407
heyman merged 4 commits intoheyman:mainfrom
LSauce:main

Conversation

@LSauce
Copy link
Copy Markdown
Contributor

@LSauce LSauce commented Nov 19, 2025

Add Mermaid language support(#393)

importScripts("guesslang.min.js")

GUESSLANG_LANGUAGES = ["json","py","html","sql","md","java","php","css","xml","cpp","rs","cs","rb","sh","yaml","toml","go","clj","ex","erl","js","ts","swift","kt","groovy","ps1","dart","scala"]
GUESSLANG_LANGUAGES = ["json","py","html","sql","md","java","php","css","xml","cpp","rs","cs","rb","sh","yaml","toml","go","clj","ex","erl","js","ts","swift","kt","groovy","ps1","dart","scala", "mermaid"]
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guesslang doesn't support Mermaid, so "mermaid" should not me in this list.

@ItsHarper
Copy link
Copy Markdown
Contributor

Should mermaid be its own language, or just supported in Markdown blocks?

@heyman heyman enabled auto-merge January 9, 2026 14:30
@heyman heyman disabled auto-merge January 9, 2026 14:30
@heyman heyman enabled auto-merge January 9, 2026 14:32
@heyman heyman merged commit 706bd96 into heyman:main Jan 9, 2026
1 check passed
@heyman
Copy link
Copy Markdown
Owner

heyman commented Jan 9, 2026

Merged now. Thanks!

Should mermaid be its own language, or just supported in Markdown blocks?

The "cost" of adding an additional language is low (i.e. it barely increases the UI surface area, doesn't introduce any new concepts, and it shouldn't affect performance), so I think it's fine having it as a separate block type if that's something that is useful to people.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants