Linux 软件免费装
Banner图

CanaryBlue Diagrams for Mermaid

开发者 canaryblue
更新时间 2026年9月26日 21:08
PHP版本: 8.1 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

block gutenberg diagram flowchart mermaid

下载

1.2.1 1.2.0

详情介绍:

CanaryBlue Diagrams for Mermaid adds a Mermaid Diagram block to the WordPress editor. Enter Mermaid syntax, see a debounced live preview, choose a theme, and publish an accessible SVG diagram without depending on an external CDN. Mermaid is an independent open-source project. CanaryBlue Diagrams for Mermaid is developed by CanaryBlue and is not affiliated with or endorsed by the Mermaid project. Features: Documentation: https://canaryblue.org/docs/public/diagrams/ Support: https://wordpress.org/support/plugin/canaryblue-diagrams-for-mermaid Source code: https://forge.canaryblue.org/CanaryBlue-Public/Diagrams-Free Mermaid syntax reference: https://mermaid.js.org/intro/syntax-reference.html The Free edition is supported through the WordPress.org forum and does not include a service-level agreement.

安装:

From your WordPress dashboard
  1. Go to Plugins > Add New Plugin and search for "CanaryBlue Diagrams".
  2. Choose Install Now, then Activate.
Creating your first diagram
  1. In the block editor, add the Mermaid Diagram block.
  2. Enter Mermaid syntax. The preview renders as you type.
  3. Choose a theme, and set an accessible label, in the block sidebar.
Installing manually If your site cannot install from the Plugin Directory — behind a firewall, or where plugin installation is managed centrally — download the ZIP from https://wordpress.org/plugins/canaryblue-diagrams-for-mermaid/ and use Plugins > Add New Plugin > Upload Plugin. Where to find everything else Open CanaryBlue Diagrams in the WordPress admin menu for documentation, support and version information. Full installation guide: https://canaryblue.org/docs/public/diagrams/

屏幕截图:

  • Adding the Mermaid Diagram block from the inserter.
  • Four built-in themes - Default, Neutral, Dark and Forest.
  • An accessible label describes the diagram for screen-reader users.
  • The published page, rendered in the visitor's browser with no external requests.
  • When the syntax is wrong, the editor says so and the diagram source stays readable.

升级注意事项:

1.2.1 Fixes diagrams appearing as code on published pages where a caching or performance plugin minifies JavaScript. If you excluded this plugin from minification as a workaround, you can remove that exclusion after updating. No change to blocks, saved content, APIs or rendering. 1.2.0 This release requires PHP 8.1 or later; sites below that will not be offered it. Support for the free plugin moves to the WordPress.org forum. No change to blocks, saved content, APIs or rendering. 1.1.2 Corrects the documentation address declared by the plugin and ships the plugin's own source alongside the built assets. No change to blocks, saved content, APIs or rendering. 1.1.1 Submission-readiness update: resolves WordPress Plugin Check warnings without changing blocks, saved content, APIs or rendering. The complete bundled Mermaid 11.16.1 licence remains included in THIRD-PARTY-NOTICES.txt. 1.1.0 This release changes the plugin folder and main-file identity; existing blocks and diagrams remain compatible. After confirming 1.1.0 is active, deactivate and remove any manually installed pre-1.1.0 Mermaid for WordPress copy. WordPress may initially show both plugins. 1.0.2 Corrects circular mindmap label vertical alignment in both the Gutenberg preview and published pages. 1.0.1 Corrects text alignment in circular mindmap nodes while preserving existing diagrams and Mermaid rendering settings. 1.0.0 Production-ready release with synchronized metadata, definitive documentation and support links, and explicit bundled-library attribution. Existing Mermaid Diagram blocks are retained unchanged.

常见问题:

Does the plugin load Mermaid from a CDN?

No. Mermaid 11.16.1 is bundled in the plugin and rendered locally in the visitor's browser.

Which Mermaid themes are available?

The block includes Default, Neutral, Dark and Forest.

What happens when Mermaid syntax is invalid?

The editor reports the rendering error. On the front end, the saved Mermaid source remains available as a readable fallback.

The diagram looks right in the editor, but the published page shows the code instead

This is almost always a caching or performance plugin that minifies or combines JavaScript. Doing so serves a copy of this plugin's script from that plugin's own cache folder, and the files Mermaid needs to draw each diagram type are then looked for in that folder, where they are not. The block falls back to showing the diagram source, which is the code on the page. In your caching or performance plugin, exclude canaryblue-diagrams-for-mermaid from JavaScript minification and combining, then clear its cache. In WP-Optimize this is under Minify > JavaScript. If your site runs more than one such plugin, exclude it in each. The editor is unaffected because those plugins do not usually minify editor scripts, which is why the preview looks correct while the page does not.

How do I make a diagram accessible?

Use the Accessible label setting in the block sidebar to provide a short description that is applied to the rendered SVG.

Where can I get help?

Post in the support forum at https://wordpress.org/support/plugin/canaryblue-diagrams-for-mermaid. That is the support route for the free plugin, and answers there help the next person with the same question. Plugin documentation is at https://canaryblue.org/docs/public/diagrams/. CanaryBlue Diagrams Pro customers can also use https://canaryblue.org/contact/ or email support@canaryblue.org. Use those routes for anything that should not be discussed in public, such as a site address, a licence key, or anyone else's data.

Where is the source code?

The plugin package ships its own human-readable source in the src/ directory, alongside the package.json that pins the build toolchain. The canonical repository, including build configuration, tests and release workflows, is at https://forge.canaryblue.org/CanaryBlue-Public/Diagrams-Free. The source is licensed under GPLv2 or later.

How do I report a security issue?

Do not report a suspected vulnerability in public, including in the WordPress.org support forum and in any public issue tracker. Email support@canaryblue.org or use https://canaryblue.org/contact/ with the subject "Security report: CanaryBlue Diagrams for Mermaid".

更新日志:

1.2.1 1.2.0 1.1.2 1.1.1 1.1.0 1.0.2 1.0.1 1.0.0 0.1.2 0.1.1 0.1.0