Liking cljdoc? Tell your friends :D
Clojure only.

mermaid-processor.parse


parse-mermaidclj

(parse-mermaid content)

Parse a mermaid chart

ARGUMENTS:

  • content: The chart

RETURN: A structure with nodes and routes between nodes

{:start-at "A"
 :nodes {"A" {:node-text "Desc" 
                :routes ({:route-destination "B" 
                          :route-text "To"})}
         "B" {:node-text "Desc2"
                :routes ()}}

EXAMPLE:

(parse-mermaid "flowchart TD
                 A[Desc]-->|To|B[Desc2]")

THROWS: ExceptionInfo if there was a parse error.

Parse a mermaid chart
     
ARGUMENTS:
- content: The chart
   
RETURN:
A structure with nodes and routes between nodes
```
{:start-at "A"
 :nodes {"A" {:node-text "Desc" 
                :routes ({:route-destination "B" 
                          :route-text "To"})}
         "B" {:node-text "Desc2"
                :routes ()}}
``` 
EXAMPLE:
```
(parse-mermaid "flowchart TD
                 A[Desc]-->|To|B[Desc2]")
```    
THROWS:
ExceptionInfo if there was a parse error.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close