While generating Mermaid graphs with TruffleRuby 24.0.0 I ran into an instance where the output is not valid Mermaid syntax. I've extracted the problematic snippet from a larger graph:
It's the nested double-quotes. It looks like Mermaid doesn't always honor the escape character. The solution appears to be replacing " with #quot; in the node labels.
While generating Mermaid graphs with TruffleRuby 24.0.0 I ran into an instance where the output is not valid Mermaid syntax. I've extracted the problematic snippet from a larger graph: