temando / remark-mermaid

A remark plugin for Markdown that replaces mermaid graphs with rendered SVGs.
MIT License
82 stars 30 forks source link

Still maintained - new major version possible? #9

Open daKmoR opened 4 years ago

daKmoR commented 4 years ago

mermaid changed quite a lot... cli package has move to a separate package https://github.com/mermaid-js/mermaid-cli

also it seems now possible to use mermaid directly by passing a string without the cli? πŸ€”

mermaidAPI.initialize({
     startOnLoad:true
 });
 $(function(){
     const graphDefinition = 'graph TB\na-->b';
     const cb = function(svgGraph){
         console.log(svgGraph);
     };
     mermaidAPI.render('id1',graphDefinition,cb);
 });

☝️ http://mermaid-js.github.io/mermaid/#/mermaidAPI?id=render

we could work on a "update/rewrite" and publish it as a new major version?

would you accept such a "huge" change... or shell we publish under a different name? πŸ˜…

kevinslin commented 3 years ago

+1, any updates on this?

@daKmoR did you end up publishing a new version?

daKmoR commented 3 years ago

so far no πŸ˜…

if anyone could publish a package that would be sweet πŸ‘

kevinslin commented 3 years ago

Got it. Will aim to get to that later this year. Meanwhile, I've published a fork with the mermaid.cli dependency removed in case that's useful to anyone: https://github.com/dendronhq/remark-mermaid

On Thu, Jan 21, 2021 at 10:39 PM Thomas Allmer notifications@github.com wrote:

so far no πŸ˜…

if anyone could publish a package that would be sweet πŸ‘

β€” You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/temando/remark-mermaid/issues/9#issuecomment-765172653, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADD52K7YMO2Y2UE36ODYZDS3EMRHANCNFSM4OFSQCTQ .

hydrosquall commented 3 years ago

@kevinslin the fork is currently even with the head of this repo ( https://a.cl.ly/NQuw2pr7 ), is your fork on a branch that might be stored locally?

kevinslin commented 2 years ago

@hydrosquall you're right, my bad. just pushed!

PeppeL-G commented 1 year ago

To others as novice as me: install @kevinslin version by using:

npm install @dendronhq/remark-mermaid mermaid.cli
remcohaszing commented 1 year ago

Just dropping here that I maintain remark-mermaidjs. This is not a fork or anything. It’s a separate project.