Skip to content

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

Merged
mejo- merged 1 commit into
nextcloud:mainfrom
xhon-pelushi:fix/text-8232-mermaid-menu
Sep 15, 2026
Merged

mejo- merged 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
Contributor

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

@github-actions

Copy link
Copy Markdown
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

Fixes nextcloud#8232

Signed-off-by: xhon-pelushi <xhon@pelushi.com>
@mejo-
mejo- force-pushed the fix/text-8232-mermaid-menu branch from 424a4aa to 9ce145d Compare September 14, 2026 12:28

@mejo- mejo- left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks a lot for the contribution @xhon-pelushi. The code changes look good to me.

@mejo-

mejo- commented Sep 14, 2026

Copy link
Copy Markdown
Member

/backport to stable35

@mejo-
mejo- merged commit 6419d73 into nextcloud:main Sep 15, 2026
67 of 76 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make inserting mermaid diagrams more obvious

3 participants