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
71.18k stars 6.41k forks source link

Mermaid doesn't have callback for syntax error #5388

Open FaryarKankash opened 6 months ago

FaryarKankash commented 6 months ago

Description

I'm creating an application with mermaid and i want to give user where the mermaid syntax has error, but the logical bug of mermaid is it doesn't have any event or callback for throwing error!

Steps to reproduce

  1. just write wrong mermaid syntax !

Screenshots

No response

Code Sample

No response

Setup

Suggested Solutions

No response

Additional Context

No response