Skip to content

CSS Class not applied in classDiagram when escaped class name begins with a number #5106

Closed
@jacbz

Description

Description

When I attach a CSS class to a class where the name was escaped, and the name starts with a number, the CSS class is not applied.

Steps to reproduce

Generate diagram for this:

classDiagram
class `2c`:::className {
    << Test >>
}

Expected: 2c has CSS class "className".

Actual: 2c does not have CSS class "className".

Setup

  • Mermaid version: 10.6.0
  • Browser and Version: Chrome

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