mermaid-js / mermaid

Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
https://mermaid.js.org
MIT License
71.18k stars 6.41k forks source link

A diagram that works in mermaidchart.com fails in Notion #5341

Closed chris-braidwell closed 7 months ago

chris-braidwell commented 7 months ago

Description

When I paste the same Mermaid source into a /mermaid block in Notion, I get this error: Syntax error in Mermaid diagram: TypeError: Cannot read properties of undefined (reading 'id').

Steps to reproduce

I can share the source in a private message.

Screenshots

No response

Code Sample

No response

Setup

Notion as of 29-Feb-2024

Suggested Solutions

Could the Notion plugin for Mermaid be out of date? Should we expect differences in the two environments?

Additional Context

No response

Yokozuna59 commented 7 months ago

Most likely because they are using an older version.

The live editor uses v10.8.0, but notion uses v10.6.1:

8CA99124-47F8-4C21-A4C3-EE4615A8A33F

chris-braidwell commented 7 months ago

Thanks. Is there an official contact @ Notion to work this with? If not I'll just open a general ticket with them.

I didn't know about info -- that's handy.

Yokozuna59 commented 7 months ago

I'm not really sure, but people open issues in this repo: https://github.com/makenotion/notion-sdk-js.