Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create diagramVersionMigrator script #4620

Open
Yokozuna59 opened this issue Jul 8, 2023 · 1 comment
Open

create diagramVersionMigrator script #4620

Yokozuna59 opened this issue Jul 8, 2023 · 1 comment
Labels
Area: Development Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request Type: Other Not an enhancement or a bug

Comments

@Yokozuna59
Copy link
Member

Currently, some diagram have -v2 prefix, i.e., flowchart-v2 and stateDiagram-v2, indicating there's slightly changes in grammar or/and layout. Most users mayn't be aware of changes required (or need a lot of work) to migrate to the newest version. So by creating this script, it would allow users to have up-to-date code for their diagrams.

We could also add this functionality to https://mermaid.live, add something like a button that updates the code.

Note: I'm not sure if we should make this part of mermaid-live-editor or mermaid, but I feel like adding it to mermaid and provide an API for it would be a better choice.

@Yokozuna59 Yokozuna59 added Type: Enhancement New feature or request Type: Other Not an enhancement or a bug Area: Development labels Jul 8, 2023
@github-actions github-actions bot added the Status: Triage Needs to be verified, categorized, etc label Jul 8, 2023
@Yokozuna59
Copy link
Member Author

We also have handle the new keywords when they're applied (see #4542).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Development Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request Type: Other Not an enhancement or a bug
Projects
None yet
Development

No branches or pull requests

1 participant