Skip to content

Multiline title in flowchart subgraphs is overlapped by nodes #3806

Description

@Ircama

Description

Multiline titles in flowchart subgraphs (e.g., subgraph C["multiline text"]) are overlapped by nodes.

Steps to reproduce

Check this example:

```mermaid
graph TD
    subgraph C["A process that<br>
    is generally adopted"]
        A[Christmas] -->|Get money| B(Go shopping)
    end
```
graph TD
    subgraph C["A process that<br>
    is generally adopted"]
        A[Christmas] -->|Get money| B(Go shopping)
    end
Loading

Another example with the Mermaid Live Editor

graph TD
    subgraph C["A process that
    is generally adopted"]
        A[Christmas] -->|Get money| B(Go shopping)
    end

Setup

Desktop

  • OS and Version: Windows 11
  • Browser and Version: Chrome Version 107.0.5304.107 (Official Build) (64-bit), Firefox 107.0 (64 bit, ...
  • Mermaid v9.2.2

Additional Context

In addition, it appears that there is no possibility to control the spacing of the subgraph title text (margin, padding).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions