跳到内容

SolveBeam Diagrams with Mermaid

v1.0.0

SolveBeam · 2026年10月11日 上架

A plugin for rendering Mermaid diagrams and visualizations from Mermaid code.

正在使用
10 以下
评分
暂无
累计下载
235
最近更新
2026年11月5日
需要 WordPress 6.8+已测试到 7.1.5PHP 8.3+

贡献者

截图

The Mermaid block with the live preview in the block editor.
The Mermaid block with the live preview in the block editor.
The Mermaid block in the block inserter.
The Mermaid block in the block inserter.
The Mermaid code in the block settings sidebar.
The Mermaid code in the block settings sidebar.
A clear error message for invalid Mermaid code.
A clear error message for invalid Mermaid code.
A Mermaid diagram on the front end of a website.
A Mermaid diagram on the front end of a website.
A sequence diagram, pie chart, Gantt chart and mindmap on the front end.
A sequence diagram, pie chart, Gantt chart and mindmap on the front end.

SolveBeam · GitHub

SolveBeam Diagrams with Mermaid adds a block for creating diagrams and visualizations with
Mermaid. Enter Mermaid syntax in the block editor and
the diagram is rendered in the editor and on the front end.

Mermaid is rendered locally in the browser. This plugin does not require an
external account or service to render diagrams.

Source Code

This plugin ships compiled (minified) JavaScript and CSS in the blocks/
folder. The human-readable source code of everything in that folder is
publicly available:

What is in the blocks/ folder?

  • blocks/mermaid-diagram/ – compiled from blocks-src/mermaid-diagram/
    (index.js, view.js, editor.css, style.css and block.json),
    including the core of the Mermaid library.
  • blocks/*.js (numbered files such as blocks/8726.js) – chunks that webpack
    splits off from Mermaid and are loaded on demand for the different diagram
    types. These files contain only code from Mermaid and its npm dependencies,
    not from this plugin.

The Mermaid dependencies bundled in these chunks, with their public source code:

Building from source

The compiled files are built with @wordpress/scripts
(webpack). Node.js and npm are required.

  1. Clone the repository or use the plugin folder:
    git clone https://github.com/solvebeam/solvebeam-diagrams-with-mermaid-for-wordpress.git
  2. Install the dependencies (including Mermaid from npm): npm install
  3. Build the production files: npm run build

This compiles blocks-src/ into blocks/. Use npm run start to build in
development mode and watch for changes; development builds are not minified.

Third-Party Licenses

This plugin bundles Mermaid, which is
available under the MIT License. The Mermaid license is available at
https://github.com/mermaid-js/mermaid/blob/develop/LICENSE.
The dependencies of Mermaid listed above are available under their own open
source licenses, which can be found in their repositories.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums