Mermaid Converter · emploidai Marketplace
emploidai Marketplace
Add-onsAppletsPlugins
Search tools, teams, and capabilitiesPublish
MarketplacePluginsMermaid Converter
Plugin
Limited listing

Mermaid Converter

by hjlarry · v0.0.1

Convert Mermaid diagram code to images (PNG, JPG, PDF, SVG)

3.8k installsUpdated Jul 18, 2025
Publisher information is incomplete

This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.

Capabilities

Tools

Available inside your emploidai workspace after installation.

Data sources

Available inside your emploidai workspace after installation.

Category

tool

Version

0.0.1hjlarry

Requirements

Maximum memory 256MB

Pricing

Not disclosed by publisher

Security & access

Review before installing

CompatibleRequires emploidai 1.0.0+

Permissions

  • Uses tool capability

Dependencies

No additional dependencies

Resources

Privacy policy
emploidai Marketplace

Discover capabilities. Review access. Install inside your workspace.

DocumentationSecuritySupportPrivacyTerms

Mermaid Converter

Author: hjlarry
Version: 0.0.1
Type: tool
Repo: https://github.com/hjlarry/dify-plugin-mermaid

Description

A Dify plugin that converts Mermaid diagram code to images in multiple formats (PNG, JPG, PDF, SVG) using the mermaid.ink API service. This plugin enables users to generate visual diagrams programmatically within Dify workflows and agent interactions.

Features

  • Multiple Output Formats: Supports PNG, JPG, SVG, and PDF formats
  • Theme Support: Choose from default, dark, neutral, or forest themes
  • Customization Options: Configure background colors, image dimensions
  • Error Handling: Graceful handling of invalid syntax and API failures
  • No API Key Required: Uses the free mermaid.ink public service

Supported Parameters

ParameterTypeRequiredDefaultDescription
mermaid_codestringYes-The Mermaid diagram syntax code
output_formatselectNopngOutput format: png, jpg, svg, pdf
themeselectNodefaultVisual theme: default, dark, neutral, forest
background_colorstringNotransparentBackground color (hex code or named color)
widthnumberNo-Image width in pixels
heightnumberNo-Image height in pixels

Usage Examples

The converter config:

Here I create a workflow and ask the LLM to generate a git common operation mindmap by mermaid code:

The final result:

Troubleshooting

Common Issues

  1. "Invalid Mermaid syntax"

    • Check your Mermaid code syntax using Mermaid Live Editor
    • Ensure proper line breaks and spacing in diagram code
  2. "Conversion timeout"

    • Simplify complex diagrams
    • Check network connectivity
    • Try again as the service may be temporarily slow
  3. "Diagram too large"

    • Reduce the complexity of your diagram
    • Split large diagrams into smaller components
  4. Empty or corrupted output

    • Verify Mermaid syntax is correct
    • Check if all required parameters are provided
    • Try with a simpler diagram first

Limitations

  • Maximum diagram size limited by mermaid.ink API
  • Dependent on external service availability
  • Some advanced Mermaid features may not be supported
  • Internet connectivity required