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

My class diagram cannot be displayed. #376

Closed
walkingtyphoon opened this issue Feb 17, 2023 · 3 comments
Closed

My class diagram cannot be displayed. #376

walkingtyphoon opened this issue Feb 17, 2023 · 3 comments
Labels

Comments

@walkingtyphoon
Copy link

My class diagram cannot be displayed. I have tried many methods and studied your blog for a long time, but he keeps reporting errors. I am going to crash. Here is my linkblog

@sylhare
Copy link
Owner

sylhare commented Feb 17, 2023

Could be the version of mermaid, I'll update it

@sylhare
Copy link
Owner

sylhare commented Feb 21, 2023

The issue is the <<interface>> the < does not work well in HTML, so you can either try to escape it or use:

  <div class="mermaid" id="1">
  classDiagram
      Print <-- Main:Uses
      Print <|.. PrintBanner
      Banner <|-- PrintBanner
      class Main
      interface Print
        Print: printWeak()
      class PrintBanner{
        printWeak()
        printStrong()
      }
      class Banner {
       showWithParen()
       showWithAster()
      }
  </div>

And it should work

@sylhare sylhare closed this as completed Feb 21, 2023
@walkingtyphoon
Copy link
Author

alright, thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants