Skip to content

Support quoted labels and ampersands in Mermaid flowcharts - #47678

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/9e61a04665f0266d369fa3595411c9a72f10cb9d
Sep 23, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/9e61a04665f0266d369fa3595411c9a72f10cb9d

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Support quoted labels and ampersands in Mermaid flowcharts

Why

Flowcharts with labels such as A["Review & confirm"] fell back to source display instead of rendering a diagram.

What changed

Accept double-quoted node and edge labels, strip the surrounding quotes, and allow literal ampersands in flowchart labels. Keep other diagram families' label restrictions and continue rejecting HTML, entity escapes, and malformed quotes.

Testing

Add parser and renderer regression tests for quoted labels, literal ampersands, statement separators, and unsupported text, plus TUI coverage for rendered labels and entity source fallback.

## Why

Flowcharts with labels such as `A["Review & confirm"]` fell back to source display instead of rendering a diagram.

## What changed

Accept double-quoted node and edge labels, strip the surrounding quotes, and allow literal ampersands in flowchart labels. Keep other diagram families' label restrictions and continue rejecting HTML, entity escapes, and malformed quotes.

## Testing

Add parser and renderer regression tests for quoted labels, literal ampersands, statement separators, and unsupported text, plus TUI coverage for rendered labels and entity source fallback.

GitOrigin-RevId: 9e61a04665f0266d369fa3595411c9a72f10cb9d
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/9e61a04665f0266d369fa3595411c9a72f10cb9d branch from 4671ac0 to 9477081 Compare September 23, 2026 22:09
@copyberry
copyberry Bot merged commit 9477081 into main Sep 23, 2026
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/9e61a04665f0266d369fa3595411c9a72f10cb9d branch September 23, 2026 22:09
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant