Skip to content

Commit 35ab58d

Browse files
authored
Merge pull request #1696 from silentoplayz/codex/docs-mermaid-label-quotes
docs: show how to quote Mermaid flowchart labels
2 parents 6fae228 + c35c161 commit 35ab58d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • docs/features/chat-conversations/chat-features/code-execution

‎docs/features/chat-conversations/chat-features/code-execution/mermaid.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ When you request a MermaidJS visualization, the Large Language Model (LLM) will
2424

2525
If the model generates MermaidJS syntax, but the visualization does not render, it usually indicates a syntax error in the code. Don't worry, you'll be notified of any errors once the response has been fully generated. If this happens, try referencing the [MermaidJS documentation](https://mermaid.js.org/intro/) to identify the issue and revise the prompt accordingly.
2626

27+
If a flowchart fails to render because a node label contains parentheses, put double quotes around the label inside the brackets. For example, change `A[Retry (manual)]` to `A["Retry (manual)"]`. If you can edit the assistant response, make that change in the Mermaid code block and save the message.
28+
2729
## Interacting with Your Visualization
2830

2931
Once your visualization is displayed, you can:

0 commit comments

Comments
 (0)