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.

BUG: How to render mermaid?

See original GitHub issue

Question description

I am trying to create a mermaid flowchart. When I copy and paste the examples from the markdown syntax page, the example renders the flowchart, but when I type a new one manually, all I see is a ‘fenced’ code block, and the word ‘mermaid’ after the backticks is blue and bold.

I tried:

\``` mermaid
graph TD;
A-->M;
\```

How do I create a mermaid flowchart rather than a fenced code block?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
leebutcommented, Jun 12, 2020

Thank you for the response. Typing ```mermaid directly is creating the fenced code block not a mermaid diagram block. That’s the problem I am facing. Thank you for the @ shortcut.

0reactions
dmeatte-aqcommented, Sep 7, 2022

This is still a quirky feature. Creating a mermaid block in wysiwyg mode still won’t render it below, until you flip to source mode and back or you reopen the file. After that, it mostly works.

I’m glad to see mermaid rendering is supported. When I first found this bug, I thought it may not be.

Read more comments on GitHub >

github_iconTop Results From Across the Web

There's a bug with mermaid rendering in reading view
Actual result. The bug will render a blank block (at the bottom left corner). bug just appear in reading mode. image. or.
Read more >
Mermaid charts not rendering correctly on production - GitLab
Mermaid charts won't render correctly ( see attached screenshots for expected and actual behavior ). What are the steps to reproduce the bug....
Read more >
Mermaid diagrams are not rendered correctly in GoLand when ...
The label inside mermaid diagram is displayed incorrectly. All the other text in markdown file is rendered just fine. PyCharm renders a diagram...
Read more >
bug report obsidian does not render mermaid journey graphs ...
bug report obsidian does not render mermaid journey graphs correctly. ... 26 views May 30, 2021 bug report obsidian does not render mermaid...
Read more >
Quarto Revealjs - Mermaid diagrams don't show after R code ...
Mermaid diagrams in reveal JS don't render after 2nd slide. opened 02:29AM - 26 Sep 22 UTC. d-chambers. bug mermaid.
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