You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, it looks like the code that generates the Mermaid diagram is not passing in anything for the id parameter. This causes Mermaid to use the default id of diagram. This will conflict with other elements on the page that have the same id.
You could allow a new property on the Diagram element that allows the id to be specified like this:
Currently, it looks like the code that generates the Mermaid diagram is not passing in anything for the
id
parameter. This causes Mermaid to use the defaultid
ofdiagram
. This will conflict with other elements on the page that have the sameid
.You could allow a new property on the
Diagram
element that allows theid
to be specified like this:The code change would be in the file https://github.com/JulianCataldo/web-garden/blob/develop/components/Diagram/Diagram.astro on line 24:
You'll need to handle the safeguards as well. I'm happy to submit a PR if you prefer. 😁
The text was updated successfully, but these errors were encountered: