I’m an avid user of mermaid but am constantly annoyed by their limitation that subgraphs do not follow direction if any internal nodes are connected to the outside. So I asked Claude to add a new syntax called stack layout and it seems to work pretty elegantly. I also fixed my annoyance with me...
Source: [Hacker News](https://ramraj07.github.io/ra-mermaid/)