Skip to content

Conversation

@greg80303
Copy link
Contributor

When generating Mermaid, be sure that tables are sorted alphabetically. This ensures that the --check flag will always succed if the diagrams are the same. The --check flag just checks for pure string equality, so we must ensure that generated diagram text is always the same.

Also updated the --check command to output the difference between the old and new outputs to give more information on what needs to be fixed.

@tedivm tedivm changed the title Sort tables in Mermaid output Display diff when check fails, Sort tables in Mermaid output Jan 4, 2026
@tedivm tedivm merged commit 89b843b into tedivm:main Jan 4, 2026
16 checks passed
@tedivm
Copy link
Owner

tedivm commented Jan 4, 2026

Thanks for the PR! It's been released as v0.15.0.

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.

2 participants