question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

how can i render mermaid in slides?

See original GitHub issue

I used mermaid in markdown, like:

sequenceDiagram
   participant A
   participant B
   A -> B: test

It can be render well in markdown preview, but it just shown as original code not a diagram in the slides. How can i do to make the presentation support mermaid in markdown?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
rvioncommented, Mar 15, 2020

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
0reactions
fuhrmanatorcommented, Oct 9, 2021

@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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Presentations with Remark and Mermaid - DZone
So, I started using Remark, a JavaScript library that renders Markdown to HTML, with some tweaks that are specific to slides, and some...
Read more >
Mermaid - Google Workspace Marketplace
This is using the mermaidJS 8.5.1 for rendering https://mermaidjs.github.io/ This is ideal for technical documentation, where having up to ...
Read more >
Rendering Mermaid Charts - Markdown Monster Documentation
You can embed Mermaid Charts content into a Markdown document in Markdown Monster using either a Mermaid Markdown Code Snippet or using their ......
Read more >
Mermaid — Advanced Slides Documentation - GitHub Pages
It's possivle to overload the default mermaid configuration to change the behaviour / layout of the rendered mermaid diagrams. Do do this add...
Read more >
How to Create Mermaid Diagrams - YouTube
Giuliana Lucchesi from the GitLab PeopleOps team provides a brief overview of how to create flowcharts, graphs, diagrams, Gantt charts, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found