Liking cljdoc? Tell your friends :D
Clojure only.

mermaid-processor.parsers.flowchart


parseclj

(parse content)

Parse a mermaid flowchart

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 "A[Desc]-->|To|B[Desc2]")

THROWS: ExceptionInfo if there was a parse error.

Parse a mermaid flowchart
     
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 "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