Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mermaid renderer can't handle some nodes #87

Closed
nirvdrum opened this issue Mar 21, 2024 · 1 comment · Fixed by #88
Closed

Mermaid renderer can't handle some nodes #87

nirvdrum opened this issue Mar 21, 2024 · 1 comment · Fixed by #88

Comments

@nirvdrum
Copy link
Contributor

nirvdrum commented Mar 21, 2024

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:

flowchart TD
  node3("3 @{:declaring_class=>\"com.oracle.truffle.runtime.OptimizedCallTarget\", :method_name=>\"profiledPERoot\", :signature=>{:args=>[\"[Ljava/lang/Object;\"], :ret=>\"Ljava/lang/Object;\"}, :modifiers=>20}:0")
@nirvdrum
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant