Code Monkey home page Code Monkey logo

Comments (13)

rvion avatar rvion commented on July 30, 2024 1

how can we enter newer mermaid diagrams such as https://mermaid-js.github.io/mermaid/#/gantt?id=syntax ?

it doesn't seem to work

gantt
    dateFormat  YYYY-MM-DD
    title Adding GANTT diagram functionality to mermaid

    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

    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

from vscode-reveal.

evilz avatar evilz commented on July 30, 2024

Hi,

Actually it's not possible. Thank for asking.

I will add this plugin https://github.com/ludwick/reveal.js-mermaid-plugin

Maybe in Version 3

from vscode-reveal.

evilz avatar evilz commented on July 30, 2024

Not yet ...

from vscode-reveal.

evilz avatar evilz commented on July 30, 2024

Shoud be good :)

image

from vscode-reveal.

roji avatar roji commented on July 30, 2024

Can be closed no?

from vscode-reveal.

rvion avatar rvion commented on July 30, 2024

@evilz could we re-open this one ?

from vscode-reveal.

vladimircezar avatar vladimircezar commented on July 30, 2024

Is this already possible? Should it be reopened?

from vscode-reveal.

Cactice avatar Cactice commented on July 30, 2024

In case anybody's confused with the syntax this should be good:

<div class="mermaid">
graph LR;
  A(AAAA)==> B(B node);
  B==> C(SEE SEE);

  class A diag-a-styles;
  class B diag-b-styles
  class C diag-c-styles;
</div>

You can find more examples in the sample

from vscode-reveal.

mlubej avatar mlubej commented on July 30, 2024

more complex gantt diagrams also don't work for me, like in the case above from @rvion

from vscode-reveal.

fuhrmanator avatar fuhrmanator commented on July 30, 2024

I think the problem might be that the mermaid plug-in inside vscode-reveal is the old one?

When one plug-in depends on another and its code is copied as part of its deployment, then new features won't work until the main plugin (vscode-reveal) integrates and re-releases the newest. I saw this with other reveal plugins here (can't remember which one it was, but I managed to hack the update in my install (libs folder?) to get the feature). I think you could do the same as a workaround.

from vscode-reveal.

evilz avatar evilz commented on July 30, 2024

maybe you are right.
I should update a lot of stuff ... PR is welcome ;p

from vscode-reveal.

fuhrmanator avatar fuhrmanator commented on July 30, 2024

@evilz I think I could make the update changes, but how do you build/test this plugin normally? I'm not new to TypeScript or VSCode, but never did a VSCode plug-in. Is there a quick-start you follow?

from vscode-reveal.

fuhrmanator avatar fuhrmanator commented on July 30, 2024

@evilz OK, I got the jest tests to pass, but it seems the extension still has the vscode dependency. Would you agree to migrate it per this explanation?

from vscode-reveal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.