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

[Docs Suggestion] - sequence diagram participant aliasing - line breaks #4351

Closed
dazinator opened this issue Apr 26, 2023 · 1 comment · Fixed by #5570
Closed

[Docs Suggestion] - sequence diagram participant aliasing - line breaks #4351

dazinator opened this issue Apr 26, 2023 · 1 comment · Fixed by #5570
Labels
Status: Triage Needs to be verified, categorized, etc

Comments

@dazinator
Copy link

dazinator commented Apr 26, 2023

I am new to mermaid.js and using the live editor to create a sequence diagram and reading the docs, it took me a long time to work out how to make the name of the actor | particpant span multiple lines.

I eventually worked it out that you must do this:

  participant MySuperLongName as My Super<br>Long Name

It would be really nice to update the docs to include something about this. Aliasing is mentioned, but it wasn't clear that this is the only mechanism to introduce new lines into actor names.

@dazinator dazinator changed the title [Docs] - sequence diagram participant aliasing - line breaks [Docs Suggestion] - sequence diagram participant aliasing - line breaks Apr 26, 2023
@github-actions github-actions bot added the Status: Triage Needs to be verified, categorized, etc label Apr 26, 2023
@abitrolly
Copy link
Contributor

@dazinator thanks for the pointer!

Here is the page to be fixed https://mermaid.js.org/syntax/sequenceDiagram.html#aliases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants