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

Nested class diagram crashes diagram creation #6085

Closed
D0kRay opened this issue Nov 27, 2024 · 1 comment
Closed

Nested class diagram crashes diagram creation #6085

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

Comments

@D0kRay
Copy link

D0kRay commented Nov 27, 2024

Description

This function was mentioned in issue #5487 and should be possible with the following syntax.
If i paste the underlying snippet in the live editor (develop and normal) the creation of the diagram fails.

classDiagram
  
  namespace presentation{
      class auth
      class main
  }
  namespace auth{
      class AuthScreen
      class AuthViewModel
  }
  namespace main{
      class MainScreen
      class MainViewModel
  }

Steps to reproduce

  1. paste the snippet in the description in the live editor
  2. live preview doesn't work

Screenshots

No response

Code Sample

classDiagram
  
  namespace presentation{
      class auth
      class main
  }
  namespace auth{
      class AuthScreen
      class AuthViewModel
  }
  namespace main{
      class MainScreen
      class MainViewModel
  }

Setup

  • Mermaid version: 11.4
  • Browser and Version: Chrome, Edge

Suggested Solutions

No response

Additional Context

No response

@D0kRay D0kRay added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Nov 27, 2024
@jgreywolf
Copy link
Contributor

Closing this as this is not currently supported, and is covered in #6018

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

2 participants