Skip to content

Comments

Fix Mermaid lexical error in docs/q.md caused by unquoted /q node label#201

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/fix-mermaid-rendering-error
Draft

Fix Mermaid lexical error in docs/q.md caused by unquoted /q node label#201
Copilot wants to merge 2 commits intomainfrom
copilot/fix-mermaid-rendering-error

Conversation

Copy link
Contributor

Copilot AI commented Feb 24, 2026

The Mermaid diagram in docs/q.md failed to render because [/q Command] uses a leading / inside square brackets, which Mermaid interprets as the start of a parallelogram shape ([/text/] or [/text\]), producing a lexical error when no closing delimiter is found.

Change

Quoted the node label to treat the content as literal text:

- A[/q Command] --> B[Analyze Workflows]
+ A["/q Command"] --> B[Analyze Workflows]
Original prompt

This section details on the original issue you should resolve

<issue_title>Mermaid rendering error here</issue_title>
<issue_description>https://github.com/githubnext/agentics/blob/main/docs/q.md

Unable to render rich display

Lexical error on line 2. Unrecognized text.
... LR A[/q Command] --> B[Analyze Work
----------------------^

For more information, see https://docs.github.com/get-started/writing-on-github/working-with-advanced-formatting/creating-diagrams#creating-mermaid-diagrams</issue_description>

Comments on the Issue (you are @copilot in this section)


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix mermaid rendering error in documentation Fix Mermaid lexical error in docs/q.md caused by unquoted /q node label Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mermaid rendering error here

2 participants