Skip to content

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

Merged
dsyme merged 2 commits into
mainfrom
copilot/fix-mermaid-rendering-error
Feb 26, 2026
Merged

Fix Mermaid lexical error in docs/q.md caused by unquoted /q node label#201
dsyme merged 2 commits into
mainfrom
copilot/fix-mermaid-rendering-error

Conversation

Copy link
Copy Markdown
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
@dsyme dsyme marked this pull request as ready for review February 26, 2026 12:04
@dsyme dsyme merged commit bcc5824 into main Feb 26, 2026
1 check passed
@dsyme dsyme deleted the copilot/fix-mermaid-rendering-error branch February 26, 2026 12:04
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

3 participants