-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Support note text that spans multiple lines in sequence diagram #2199
Comments
Same. |
Potential workaround: At least it worked for me while previewing markdown/mermaid in VS Code. |
As a user coming from plantuml the only thing i disliked with mermaid❤️ was the "one-liner" note syntax. Example:
vs possible multiline solution:
|
Would using braces/parentheses as string delimiters work? [StackOverflow](
http://stackoverflow.com) Or triple quotes # str1 becomes "Roses are red\nVioles are blue"
str1 = """
Roses are red
Violets are blue"""
# str2 becomes "The quick brown fox jumps over the lazy dog." (a single sentence with no line breaks).
str2 = """\
The quick brown \
fox jumps over \
the lazy dog.\
""" |
I use Mermaid in Notion, and multiline notes have the last line clipped vertically (seems to be miscalculating the line height). I can specify the note as separate lines without any special markup, but to solve the clipped last line, I add a line with
|
Doesn't seem to work in the online editor at all: |
Are there any alternative methods to get multiline notes? |
I think #5460 also covers multiline notes |
Is your feature request related to a problem? Please describe.
I would like to be able to have a long text span multiple lines. PlantUML solved this with use of embedded
\n
to force a new line.Describe the solution you'd like
I would like the ability to have a note span multiple lines using either 1) embedded \n character sequence in the note text; OR 2) note syntax that would allow text to span multiple lines (something like "begin note", note text over multiple lines and then "end note" - I won't define exactly how this should look because I feel it is up to the implementor to define this)
Describe alternatives you've considered
The alternatives are defined above.
Additional context
No additional context.
The text was updated successfully, but these errors were encountered: