Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mermaid Preview in Markdown preview is not working #14654

Open
eneufeld opened this issue Dec 19, 2024 · 2 comments
Open

Mermaid Preview in Markdown preview is not working #14654

eneufeld opened this issue Dec 19, 2024 · 2 comments

Comments

@eneufeld
Copy link
Contributor

Bug Description:

I use this extension: https://open-vsx.org/extension/bierner/markdown-mermaid in VSCode to preview Mermaid diagrams while I create them.
I want to use the same extension in Theia. Unfortunately no preview of the diagram is shown.

Steps to Reproduce:

  1. Install https://open-vsx.org/extension/bierner/markdown-mermaid
  2. Create new markdown file with mermaid diagram inside
  3. open markdown preview
  4. don't see a diagram

Additional Information

  • Operating System: Ubuntu 22.04.5 LTS
  • Theia Version: Version 1.57.0
@tsmaeder
Copy link
Contributor

@eneufeld would you have an example file? Not everyone is familiar with Mermaid.

@sdirix
Copy link
Member

sdirix commented Jan 2, 2025

Taken from the Github example:

Add a code block with mermaid annotation anywhere in a Markdown file:

# Mermaid Diagram

This is my mermaid diagram

```mermaid
  graph TD;
      A-->B;
      A-->C;
      B-->D;
      C-->D;
```

This is how the preview looks like in VS Code

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants