taikii / redmine_mermaid_macro

Mermaid.js for Redmine

Home Page:https://www.redmine.org/plugins/redmine_mermaid_macro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redmine Mermaid Macro Plugin

RedMica UI Extension is a more functional plugin.

This plugin adds a mermaid graph macro to wiki formated fields.

About mermaid: https://mermaid.js.org/

Example

{{mermaid
graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;
}}

Example

Installation

  1. Clone or copy files into the Redmine plugins directory
    // < v10
    git clone -b mermaid9 https://github.com/taikii/redmine_mermaid_macro.git plugins/redmine_mermaid_macro
    
    // >= v10
    git clone -b mermaid10 https://github.com/taikii/redmine_mermaid_macro.git plugins/redmine_mermaid_macro
    
  2. Restart Redmine

Configration

You can configure mermaid.js URL on Administration -> Plugins page. Default value is UNPKG CDN. https://unpkg.com/mermaid/dist/mermaid.min.js

License

MIT

About

Mermaid.js for Redmine

https://www.redmine.org/plugins/redmine_mermaid_macro

License:MIT License


Languages

Language:Ruby 91.8%Language:HTML 6.1%Language:CSS 2.1%