Skip to content

Fix CJK state names and text-embedded edge labels#49

Merged
balintorosz merged 1 commit into
mainfrom
fix/issues-43-32
Feb 26, 2026
Merged

Fix CJK state names and text-embedded edge labels#49
balintorosz merged 1 commit into
mainfrom
fix/issues-43-32

Conversation

@balintorosz
Copy link
Copy Markdown
Contributor

Summary

Credits

The text-embedded edge label fix is based on PR #36 by @liuxiaopai-ai. Thank you for the analysis and approach!

Test plan

  • 12 new parser tests (4 CJK + 8 text-embedded labels)
  • All 664 tests pass
  • tsc --noEmit clean

🤖 Generated with Claude Code

- Fix stateDiagram parser regexes to support Unicode (CJK/Japanese/Korean)
  state names using \p{L} character class (closes #43)
- Add text-embedded edge label syntax: `-- Yes -->`, `-. Maybe .->`,
  `== Sure ==>` as fallback to pipe syntax (closes #32)
  Based on PR #36 by @liuxiaopai-ai — thank you!
- Add linkStyle, CJK, and text-embedded label samples to gallery
- Add 12 new parser tests

Co-Authored-By: Craft Agent <agents-noreply@craft.do>
@balintorosz balintorosz merged commit 9d722cf into main Feb 26, 2026
1 check passed
@balintorosz balintorosz deleted the fix/issues-43-32 branch February 26, 2026 13:03
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.

stateDiagram parser fails to match CJK (Chinese/Japanese/Korean) state names Inconsistent rendering of flowchart branches with -- Yes -->

1 participant