Skip to content

feat(menu): add Mermaid diagram entry to Blocks menu - #9039

Open
xhon-pelushi wants to merge 1 commit into
nextcloud:mainfrom
xhon-pelushi:fix/text-8232-mermaid-menu
Open

feat(menu): add Mermaid diagram entry to Blocks menu#9039
xhon-pelushi wants to merge 1 commit into
nextcloud:mainfrom
xhon-pelushi:fix/text-8232-mermaid-menu

Conversation

@xhon-pelushi

@xhon-pelushi xhon-pelushi commented Aug 12, 2026

Copy link
Copy Markdown

Summary

  • Adds a "Mermaid diagram" item to the Blocks menu so inserting Mermaid is obvious.
  • Outside a code block it inserts a Mermaid code block; inside a code block it sets the language to `mermaid`.

Fixes #8232

Test plan

  • Open Text editor → Blocks menu → Mermaid diagram inserts a Mermaid code block
  • Inside an existing code block, choosing Mermaid switches the language to mermaid
  • `npm test` / menu entry unit tests pass

Fixes nextcloud#8232

Signed-off-by: xhon-pelushi <xhon@pelushi.com>
@xhon-pelushi
xhon-pelushi force-pushed the fix/text-8232-mermaid-menu branch from 19bb4c7 to 424a4aa Compare August 14, 2026 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make inserting mermaid diagrams more obvious

2 participants