fabiocolacio / Marker

🖊 A gtk3 markdown editor
GNU General Public License v3.0
832 stars 75 forks source link

not all mermaid node types are supported #336

Open nekr0z opened 3 years ago

nekr0z commented 3 years ago

Stadium-shaped, subroutine, cylindrical, hexagon and several other shapes make the diagram fail to render.

zgldh commented 3 years ago

autonumber is not working yet.

exploids commented 3 years ago

Chaining of links and long links don't work either.

mwileczka commented 3 years ago

I found that updating mermaid.min.js solved that problem.

Mandarancio commented 3 years ago

Hi, could you please link me which version are you using? I will test it and integrate it if does it work with out creating any side effects.

Thank you very much.

On Fri, Apr 23, 2021, 5:11 PM mwileczka @.***> wrote:

I found that updating mermaid.min.js solved that problem.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fabiocolacio/Marker/issues/336#issuecomment-825725583, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACDRTQNIXKHOA4T2FNXXFLTKGE3FANCNFSM4S6TMZWQ .

mwileczka commented 3 years ago

I used the latest release version 8.9.2 found here. I didn't try the min or core version.

https://github.com/mermaid-js/mermaid/blob/8.9.2/src/mermaid.js

This fixed the autonumber problem and I didn't immediately see any other side effects.

On Sat, Apr 24, 2021, 8:59 AM Martino Ferrari @.***> wrote:

Hi, could you please link me which version are you using? I will test it and integrate it if does it work with out creating any side effects.

Thank you very much.

On Fri, Apr 23, 2021, 5:11 PM mwileczka @.***> wrote:

I found that updating mermaid.min.js solved that problem.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub < https://github.com/fabiocolacio/Marker/issues/336#issuecomment-825725583>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AACDRTQNIXKHOA4T2FNXXFLTKGE3FANCNFSM4S6TMZWQ

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fabiocolacio/Marker/issues/336#issuecomment-826089358, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFIECBDQBERXWYJLOUBY2DLTKK6DPANCNFSM4S6TMZWQ .

gronka commented 3 years ago

erDiagram fails for me

How do I update the mermaid js file?

yanghui1228 commented 2 years ago

gantt doesn't work either. Anybody knows how to update the mermaid.min.js as mentioned above by @mwileczka

mwileczka commented 2 years ago

@yanghui1228 @gronka I was using the flatpak and the file was located here $HOME/.local/share/flatpak/app/com.github.fabiocolacio.marker/current/active/files/share/com.github.fabiocolacio.marker/scripts/mermaid/mermaid.min.js

I downloaded a new mermaid.min.js and saved it as that file. Honestly don't remember where I got it from, because the link above is not right. You could try this one, it should be the latest https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js

mwileczka commented 2 years ago

This might be better https://www.cdnpkg.com/mermaid/file/mermaid.min.js/?id=54484

yanghui1228 commented 2 years ago

This might be better https://www.cdnpkg.com/mermaid/file/mermaid.min.js/?id=54484

Thanks a lot. I make it work for my ubuntu desktop.

1. download the latest [mermaid.min.js](https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js)
2. replace the local version in `/usr/share/com.github.fabiocolacio.marker/scripts/mermaid/mermaid.min.js`
3. close/open MARKER