← Back to context

Comment by dmos62

9 hours ago

Really cool. Alexander Grooff (this is based on his go library [0]) did a great job.

[0]: https://github.com/AlexanderGrooff/mermaid-ascii

I think I ran into a bug, the "start" edge is not rendered. This is from https://agents.craft.do/mermaid:

    stateDiagram-v2
      [*] --> Idle
      Idle --> Active : start
      Active --> Idle : cancel
      Active --> Done : complete
      Done --> [*]

    ┌──────────┐
    │          │
    │          │
    │          │
    └─────┬────┘
          │     
          │     
          │     
          │     
          ▼     
    ┌──────────┐
    │          │
    │   Idle   │
    │          │
    └─────┬────┘
          ▲     
          │     
      cancel   
          │     
          ▼     
    ┌─────┴────┐
    │          │
    │  Active  │
    │          │
    └─────┬────┘
          │     
          │     
      complete  
          │     
          ▼     
    ┌──────────┐
    │          │
    │   Done   │
    │          │
    └─────┬────┘
          │     
          │     
          │     
          │     
          ▼     
    ┌──────────┐
    │          │
    │          │
    │          │
    └──────────┘