mermaid-js / mermaid

Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
https://mermaid.js.org
MIT License
70.69k stars 6.34k forks source link

@mermaid-js/parser does not parse flowchart #5742

Open lhy666 opened 3 weeks ago

lhy666 commented 3 weeks ago

Description

when i use @mermaid-js/parser

its error

Steps to reproduce

import {parse} from '@mermaid-js/parser'

const mermaidGraph = graph TD A[Start] --> B{Is it?} B -- Yes --> C[OK] B -- No --> D[Not OK]; parse('info', mermaidGraph)

Screenshots

image

Code Sample

No response

Setup

Suggested Solutions

No response

Additional Context

No response

sidharthv96 commented 3 weeks ago

Parser does not support graph/flowchart yet. We are gradually migrating the diagrams.

QbitCoding commented 1 hour ago

Does parser support erDiagram?