taikii / redmine_mermaid_macro Goto Github PK
View Code? Open in Web Editor NEWMermaid.js for Redmine
Home Page: https://www.redmine.org/plugins/redmine_mermaid_macro
License: MIT License
Mermaid.js for Redmine
Home Page: https://www.redmine.org/plugins/redmine_mermaid_macro
License: MIT License
I noticed I could not use the mermaid 10 javascript from https://cdn.jsdelivr.net/npm/[email protected]/dist/mermaid.esm.min.mjs
Would it be possible to integrate this?
When doing Gantt the bars are to small. I've tried several within init, but not successful.
How to format height of the bars?
Example (from Examples):
{{mermaid
%%{init: {'theme': 'forest'} }%%
gantt
dateFormat YYYY-MM-DD
title Adding GANTT diagram functionality to mermaid
excludes weekends
%% (`excludes` accepts specific dates in YYYY-MM-DD format, days of the week ("sunday") or "weekends", but not the word "weekdays".)
section A section
Completed task :done, des1, 2014-01-06,2014-01-08
Active task :active, des2, 2014-01-09, 3d
Future task : des3, after des2, 5d
Future task2 : des4, after des3, 5d
section Critical tasks
Completed task in the critical line :crit, done, 2014-01-06,24h
Implement parser and jison :crit, done, after des1, 2d
Create tests for parser :crit, active, 3d
Future task in critical line :crit, 5d
Create tests for renderer :2d
Add to mermaid :1d
Functionality added :milestone, 2014-01-25, 0d
section Documentation
Describe gantt syntax :active, a1, after des1, 3d
Add gantt diagram to demo page :after a1 , 20h
Add another diagram to demo page :doc1, after a1 , 48h
section Last section
Describe gantt syntax :after doc1, 3d
Add gantt diagram to demo page :20h
Add another diagram to demo page :48h
}}
Hi There!
I was wondering if support for Redmine 5.0 was planned?
Regards!
Hi,
is there a support for easyredmine?
I try out the plugin with easyredmine in version 12 (see https://www.easyredmine.com/).
Unfortunately, the diagrams are not generated.
Source snipped from a try in a Redmine wiki page
<script src="/assets/diagram_versions-c9bc306a1d9987a87bebf3dd1e855122d16f6be5cf688475b48b81297642f5d6.js" defer="defer"></script> <link rel="stylesheet" media="all" href="/plugin_assets/redmine_mermaid_macro/stylesheets/redmine_mermaid_macro.css?1675414321" />
<div class="wiki wiki-page">
<h2>Mermaid Macro Plugin Test</h2><pre><code class="language-plaintext">{{mermaid()
graph LR;
A[start]
B[end]
A --&gt; B
}}</code></pre>
</div>
<div id="diagram-modal" style="display: none">
</div> <script src="https://unpkg.com/[email protected]/dist/mermaid.min.js"></script><script>
//<![CDATA[
mermaid.initialize({startOnLoad:true});var mermaidInitialized = 1;
//]]>
</script>
Thanks,
Guido
Mermaid diagram is not drawn in preview tab while editing.
However, saved page rendering works correctly.
初めまして。
こちらのプラグイン 1.0.5 をやや古いRedmine 3.4.6 で利用させていただいております。
プラグイン作成ありがとうございます!
こちらのプラグインは通常動作は特に不具合なく満足なのですが
どうにもfontawesome の画像を表示させることには失敗しておりまして少し困っております。
コードの例:
{{mermaid
mindmap
(test)
::icon(fa fa-bullseye)
}}
プラグインの設定URLが関係あるのかと、以下で試しましたが、特に変化はありませんでした。
https://cdn.jsdelivr.net/npm/mermaid@9/dist/mermaid.js
https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.js
https://cdn.jsdelivr.net/npm/[email protected]/dist/mermaid.js
https://unpkg.com/mermaid/dist/mermaid.min.js
以上になります。
よろしくお願いいたします。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.