gt6796c / mermaid-tw5

Tiddly Wiki 5 plugin to support the mermaid library
MIT License
19 stars 10 forks source link

Update to latest Mermaid 8.4.2 #13

Open dm1090 opened 4 years ago

dm1090 commented 4 years ago

Hi @gt6796c

Can you please update TW5 Mermaid plugin to latest Mermaid 8.4.2? It has much improved Gantt charts and new features like State Transition Diagram, etc.

Or, please post some guidance on how to import latest code from https://github.com/mermaid-js/mermaid to your TW5 plugin.

Thanks.

dm1090 commented 4 years ago

Since there is no response, I generated diagrams with Mermaid CLI and imported them to Tiddlywiki. Steps on my Mac.

  1. npm install -g mermaid
  2. npm install -g mermaid.cli
  3. pushd /usr/local/lib/node_modules
  4. cp mermaid/dist/mermaid.min.js mermaid.cli/mermaid.min.js

Usage examples in https://github.com/mermaid-js/mermaid.cli

gt6796c commented 4 years ago

Hi, I've not looked at this in several years, but I'll see if I can get it updated this weekend.

IIRC, all I did was take the mermaid.js and package it up with a TW wrapper, so that's what I'll try t do.

dm1090 commented 4 years ago

Please publish when done. I'll be happy to test it.