question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow underscore in classnames

See original GitHub issue

I’m trying to create a class diagramm but mermaid crashes because I have underscores in my class name. Please add support for underscores as it is a common character here in an old project.

classDiagramTEST_ADDRESS <|-- TEST_ADDRESSES --------------^ Expecting 'NEWLINE', 'EOF', 'LABEL', 'STRUCT_START', 'STR', 'AGGREGATION', 'EXTENSION', 'COMPOSITION', 'DEPENDENCY', 'LINE', 'DOTTED_LINE', 'UNICODE_TEXT', 'NUM', 'ALPHA', got 'PUNCTUATION' at L.parseError (file:///C:/Users/username/Desktop/yarn/yarn-1.5.1/ProgramFilesFolder/Yarn/node_modules/mermaid.cli/mermaid.min.js:1:387053) at L.parse (file:///C:/Users/username/Desktop/yarn/yarn-1.5.1/ProgramFilesFolder/Yarn/node_modules/mermaid.cli/mermaid.min.js:1:388219) at Object.e.draw (file:///C:/Users/username/Desktop/yarn/yarn-1.5.1/ProgramFilesFolder/Yarn/node_modules/mermaid.cli/mermaid.min.js:1:702705) at Object.render (file:///C:/Users/username/Desktop/yarn/yarn-1.5.1/ProgramFilesFolder/Yarn/node_modules/mermaid.cli/mermaid.min.js:1:760781) at s (file:///C:/Users/username/Desktop/yarn/yarn-1.5.1/ProgramFilesFolder/Yarn/node_modules/mermaid.cli/mermaid.min.js:8:233) at Object.init (file:///C:/Users/username/Desktop/yarn/yarn-1.5.1/ProgramFilesFolder/Yarn/node_modules/mermaid.cli/mermaid.min.js:8:318) at <anonymous>:17:20 at ExecutionContext.evaluateHandle (C:\Users\username\Desktop\yarn\yarn-1.5.1\ProgramFilesFolder\Yarn\node_modules\puppeteer\lib\ExecutionContext.js:79:13) at <anonymous> at process._tickCallback (internal/process/next_tick.js:118:7) (node:17464) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:17464) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

Using a class name that begins with an underscore in ... - GitHub
WebPack often produces class names that begin with an underscore, and this is perfectly valid CSS (see: the spec / easier to digest...
Read more >
Which characters are valid in CSS class names/selectors?
A valid name should start with an underscore (_), a hyphen (-) or a letter (a-z)/(A-Z) which is followed by any numbers, hyphens,...
Read more >
tikz-uml can't handle class names containing underscores - TeX
You can set the category code of the underscore to 11 or 12 (letter/other) within the tikzpicture environment. This means you don't need...
Read more >
Don't replace underscore with hyphen in CSS class names
Instead of passing hardcoded strings filters , it would be better to give a checkbox option in the display setting where classes are...
Read more >
Naming Conventions: Underscores - Microsoft Learn
The name of the parent class might have to be shortened. In this case, use an underscore between the shortened parent class name,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found