Release v0.1.4: support unquoted multi-word subgraph titles - #7
Merged
Conversation
Mermaid accepts a subgraph title written without quotes or brackets, e.g. `subgraph Workflow Engine`. The grammar previously matched only the first identifier and then failed on the remaining words. Add an unquoted-label alternative to `subgraph_header`, ordered after the explicit `id[label]` / quoted forms and after a bare single-token id (kept via a `&NEWLINE` lookahead so a lone identifier stays a referenceable id). An unquoted multi-word title generates a synthetic id, matching the existing quoted-only behavior. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Bump workspace crates to 0.1.4 and publish the fix landed since 0.1.3: - Support unquoted multi-word subgraph titles (e.g. `subgraph Workflow Engine`) Update inter-crate dependency pins (mermaid-core -> mermaid-dagre, mermaid-rs-cli -> mermaid-core) to 0.1.4. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes a parse failure on subgraph titles written without quotes or brackets, e.g.
subgraph Workflow Engine, which Mermaid accepts. The grammar previously matched only the first identifier (Workflow) and then failed on the remaining words.Changes
subgraph_header, ordered after the explicitid[label]/ quoted forms and after a bare single-token id (preserved via a&NEWLINElookahead so a lone identifier stays a referenceable id). An unquoted multi-word title generates a synthetic id, matching existing quoted-only behavior.subgraph_unquoted_labelrule.Tests
test_parse_subgraph_with_unquoted_multiword_labelandtest_parse_subgraph_bare_id_still_has_no_label.🤖 Generated with Claude Code