Render Mermaid

by OpenClip Team

Installs
278
Type
Shell Script
Settings
6
Needs
OpenClip 1.7.0+
Version
1.1.0

Turn selected Mermaid code into an SVG or PNG diagram using Pele. Rendering happens entirely on your Mac, with no account, API key, or network connection required.

Select raw Mermaid code or a complete fenced mermaid block, open OpenClip, and choose Render Mermaid. The result card lets you preview, copy, save, or open the diagram. Right-click or Shift-click the action to copy the diagram file immediately.

In the action's settings, choose:

OptionChoicesDefault
FormatSVG (vector), PNG (image)SVG
ThemeLight, darkLight
Transparent backgroundOn, offOff
Font size12, 16, 20, 24 pixels16
Padding8, 16, 24, 32 pixels8
PNG scale multiplier1×, 2×, 3×2×

PNG scale affects image resolution; SVG remains a vector at any zoom. PNG export supports up to 8,192 pixels on either edge and 16 megapixels total. For larger diagrams, reduce the PNG scale or choose SVG.

Try selecting this code:

Select Mermaid codeRender MermaidSVG diagram

Supports Pele's built-in diagram types, including flowcharts, sequences, class diagrams, state diagrams, Gantt charts, and pie charts. Exports use fixed colors for use in other apps. Colors set explicitly in Mermaid code override the theme. External images and clickable links are disabled. Invalid code shows an error instead of producing a file.

Requires OpenClip 1.7.0 or later. Pele is bundled; PNG conversion uses macOS's built-in image APIs. Node.js and additional tools are not needed to use this extension. The defaults work without configuration.

Powered by Pele, distributed under the MIT license. Third-party license notices are included in the package.

The icon is a monochrome adaptation of the Mermaid logo, with its MIT license included in the package.