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

[Bug] Mermaid diagrams fails to show on Playground on milkdown.dev #1623

Open
2 tasks done
michaelcychan opened this issue Jan 16, 2025 · 0 comments
Open
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@michaelcychan
Copy link

michaelcychan commented Jan 16, 2025

Initial checklist

  • I agree to follow the code of conduct
  • I searched issues and discussions and couldn’t find anything (or linked relevant results below)

Affected packages and versions

v7.5.9

Link to runnable example

No response

Steps to reproduce

  1. visit https://milkdown.dev/playground
  2. Add the following mermaid snippet to the raw markdown text area:

```mermaid
flowchart TD
A[Christmas] -->|Get money| B(Go shopping)
B --> C{Let me think}
C -->|One| D[Laptop]
C -->|Two| E[iPhone]
C -->|Three| F[fa:fa-car Car]
```

Expected behavior

a mermaid diagram should be rendered on the preview side:
Screenshot 2025-01-16 at 11 12 20

Actual behavior

The mermaid snippet appears as a normal code snippet
Screenshot 2025-01-16 at 11 13 12

Runtime

Chrome

OS

macOS

Build and bundle tools

Other (please specify in steps to reproduce)

@michaelcychan michaelcychan added the bug Something isn't working label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants