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

Newlines in subgraph names cause overlap #5568

Open
binLep opened this issue Jun 14, 2024 · 1 comment
Open

Newlines in subgraph names cause overlap #5568

binLep opened this issue Jun 14, 2024 · 1 comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@binLep
Copy link

binLep commented Jun 14, 2024

Description

Where bugs occur.

  • State name in State Diagram
  • Subgraph name in Flow Chart

Steps to reproduce

1. State Diagram

Source code:

stateDiagram
    direction TB
    TokenController: aaa\nbbb\nccc
    state TokenController {
      direction LR
      login: +R<?> login(@RequestBody LoginBody form)
    }
    [*] --> TokenController

Display:

stateDiagram
    direction TB
    TokenController: aaa\nbbb\nccc
    state TokenController {
      direction LR
      login: +R<?> login(@RequestBody LoginBody form)
    }
    [*] --> TokenController
Loading

Display[obsidian]:

图片

Display[edge]:

图片

2. Flow Chart

Source code:

flowchart TD
subgraph TokenController["aaa
bbb
ccc"]
login["+R<?> login(@RequestBody LoginBody form)"]
end

Display:

flowchart TD
subgraph TokenController["aaa
bbb
ccc"]
login["+R<?> login(@RequestBody LoginBody form)"]
end
Loading

Display[obsidian]:

图片

Display[edge]:

图片

Screenshots

No response

Code Sample

No response

Setup

  • Mermaid version: 10.9.1
  • Browser and Version: [Edge]

Suggested Solutions

No response

Additional Context

No response

@binLep binLep added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Jun 14, 2024
@binLep binLep closed this as completed Jun 14, 2024
@binLep
Copy link
Author

binLep commented Jun 14, 2024

Simliar to #5217

@binLep binLep reopened this Jun 14, 2024
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 Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant