You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone, I hope you are doing well. Do you think it would be possible to enable multi-line titles in all diagrams using the <br> tag?
Summary:
Enable the use of <br> within Mermaid titles to allow multiline text. This provides a straightforward, backward-compatible way to improve readability for longer or multiple-part titles.
Rationale:
Clarity: Diagrams often need detailed or multi-part titles (e.g., title and subtitle).
Consistency: Many Markdown/HTML tools already interpret <br> for line breaks.
Simplicity: Minimal changes—only parse <br> as a line break within the existing title syntax.
Proposed Implementation:
Extend the parsing of the title keyword to detect <br> tags and render them as newlines.
Continue to treat titles without <br> tags as single-line.
Hello everyone, I hope you are doing well. Do you think it would be possible to enable multi-line titles in all diagrams using the
<br>
tag?Summary:
<br>
within Mermaid titles to allow multiline text. This provides a straightforward, backward-compatible way to improve readability for longer or multiple-part titles.Rationale:
<br>
for line breaks.<br>
as a line break within the existing title syntax.Proposed Implementation:
<br>
tags and render them as newlines.<br>
tags as single-line.Example
Screenshots
The text was updated successfully, but these errors were encountered: