Skip to content

docs: fix Mermaid sequence diagrams broken by semicolons - #52

Merged
dasiths merged 1 commit into
mainfrom
fix/mermaid-semicolons
Oct 1, 2026
Merged

dasiths merged 1 commit into
mainfrom
fix/mermaid-semicolons

Conversation

@dasiths

@dasiths dasiths commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

Problem

The Three-Party Flow diagram in README.md fails to render on GitHub:

Parse error on line 12:
...oken; resource_token    Agent->>PS: POS
Expecting ... got 'NEWLINE'

In Mermaid sequence diagrams, ; ends a statement just like a line break. Message text containing a semicolon gets cut off, and the parser then fails on what follows. Eight more diagrams in the docs had the same problem.

Fix

  • Replaced semicolons in plain-text messages with commas.
  • In docs/workflows/bootstrap-enrollment.md, the semicolons are part of real syntax (</> and the sig=jkt-jwt;jwt= header value), so they now use Mermaid escape codes (#lt;, #gt;, #59;) to keep the rendered text the same.

Files: README.md, docs/getting-started.md, docs/workflows/{bootstrap-enrollment,federated-access,ps-asserted-access,resource-managed-access,wallet-protocol}.md, samples/Concierge/README.md.

Validation

Ran every Mermaid block in the repo's Markdown (excluding the vendored aauth-spec/) through mermaid.parse: 9 of 31 failed before this change, 0 of 31 fail after it. I haven't checked how they render on GitHub yet; the #lt;, #gt; and #59; codes in bootstrap-enrollment.md should display as <, > and ;.

Mermaid treats ';' as a statement separator in sequence diagrams, so
message text containing a semicolon was truncated and the remainder
failed to parse (e.g. the Three-Party Flow diagram in README.md).

Replace prose semicolons with commas, and use Mermaid entity codes
(#lt; #gt; #59;) where the characters are meaningful syntax in
bootstrap-enrollment.md.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dasiths
dasiths merged commit 6e65463 into main Oct 1, 2026
1 check failed
@dasiths
dasiths deleted the fix/mermaid-semicolons branch October 1, 2026 14:18
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.

1 participant