Find if an md code is a valid mermaid syntax and which diagram it is #4154
Unanswered
YossiSaadi
asked this question in
Q&A
Replies: 2 comments 1 reply
-
detectType will not detect mermaid diagram inside markdown documents directly. You'll have to pare md document and then filter out code blocks with type We could export detectType in a future release if it's a requirement. |
Beta Was this translation helpful? Give feedback.
1 reply
-
@sidharthv96 Thank you, just saw it was exported! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello :)
I saw on the source code that there's a method named
detectType
that returns the diagram type of an MD string.Was wondering, as it's not exposed, which ways I have to figure if something is a Mermaid diagram and which diagram it is.
My use case is getting an MD document and finding if it contains any diagrams.
Beta Was this translation helpful? Give feedback.
All reactions