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

Using MermaidAPI.parse() method in the backend #3934

Closed
MateiMitran opened this issue Dec 20, 2022 · 1 comment
Closed

Using MermaidAPI.parse() method in the backend #3934

MateiMitran opened this issue Dec 20, 2022 · 1 comment

Comments

@MateiMitran
Copy link

Description

When I import mermaid and try to use the parse() method from mermaid.mermaidAPI.parse() in the backend, I get an error that the DOM is not sanitized. Is there a way to use this method or the parser.yy property in the backend? I am using mermaid 9.0.0 in typescript.

Steps to reproduce

  1. Use mermaid.mermaidAPI.parse().parser.yy in the backend of a project

Screenshots

No response

Code Sample

No response

Setup

Desktop

  • OS and Version: [Windows, Linux, Mac, ...]
  • Browser and Version: [Chrome, Edge, Firefox]

Smartphone

  • Device: [Samsung, iPhone, ...]
  • OS and Version: [Android, iOS, ...]
  • Browser and Version: [Chrome, Safari, ...]

Additional Context

No response

@MateiMitran MateiMitran added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Dec 20, 2022
@sidharthv96
Copy link
Member

We do not support Server-side rendering yet.

Duplicate of #3650

@sidharthv96 sidharthv96 removed Type: Bug / Error Something isn't working or is incorrect Status: Triage Needs to be verified, categorized, etc labels Dec 21, 2022
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

2 participants