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

gitGraph diagrams do not render in "sandbox" security mode #4985

Open
jasonphillips opened this issue Oct 25, 2023 · 1 comment
Open

gitGraph diagrams do not render in "sandbox" security mode #4985

jasonphillips opened this issue Oct 25, 2023 · 1 comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@jasonphillips
Copy link

jasonphillips commented Oct 25, 2023

Description

gitGraph diagrams throw an error when rendering in "sandbox" mode.

Failing example with sandbox mode ON:
https://codesandbox.io/s/strange-yonath-3zfm8q?file=/src/index.js

Working example, only difference is no sandbox:
https://codesandbox.io/s/quirky-field-vpz6w2?file=/src/index.js

Steps to reproduce

Initialize mermaid with any configuration that includes:

{
  securityLevel: "sandbox"
}

Then try to render a gitGraph diagram.

Screenshots

No response

Code Sample

See the 2 links above

Setup

  • Mermaid version: 10.6
  • Browser and Version: Chrome 117, Mac

Suggested Solutions

No response

Additional Context

No response

@jasonphillips jasonphillips added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Oct 25, 2023
@jgreywolf jgreywolf added include and removed include labels Nov 16, 2023
@iansan5653
Copy link
Contributor

Also seeing this. "Cannot read properties of null (reading 'appendChild')" when Mermaid tries to call label.node().appendChild(labelElement);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

3 participants