Skip to content

Nested class diagram crashes diagram creation #6085

Closed
@D0kRay

Description

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

Metadata

Assignees

No one assigned

    Labels

    Status: TriageNeeds to be verified, categorized, etcType: Bug / ErrorSomething isn't working or is incorrect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions