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

How to pass mermaid RunOptions.suppressErrors=false while rendering mermaid component #496

Open
aface-1916 opened this issue Nov 30, 2023 · 0 comments

Comments

@aface-1916
Copy link

I want to suppress mermaid rendering error by passing RunOptions.suppressErrors=false in MermaidAPI class.
But I know to how to pass this flag, I have the following code in my application

MermaidDemo.html

<span     
       markdown
      ngPreserveWhitespaces
      clipboard
      mermaid
      [mermaidOptions]="mermaidOptions"
      [data]="message"
     ></span>
MermaidDemo.ts

  public mermaidOptions: MermaidAPI.Config = {
    fontFamily: '"trebuchet ms", verdana, arial, sans-serif',
    logLevel: MermaidAPI.LogLevel.Info
  };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant