Skip to content

Previous Mermaid Script CORS issue: Consider bundling Mermaid #2667

Description

@gerteck

Please confirm that you have searched existing issues in the repo

Yes, I have searched the existing issues

Any related issues?

No response

Tell us about your environment

Win 11

MarkBind version

5.6.0

Describe the bug and the steps to reproduce it

On the left is Vue3, right is Vue2. There seem to be a little issue with the rendering of the mermaid diagram.

Originally posted by @IanCheah in #2622 (comment)

Here is a screenshot:

Sometimes there is the CORS issue (left), sometimes there is no CORS issue (right). Both screenshots were taken of the same page at different times. Seems to be flaky.

Image

https://markbind-master.netlify.app/userguide/components/imagesanddiagrams#mermaid-diagrams

Expected behavior

Should work.

Anything else?

Seems to be quite a concerning regression actually, not sure why this is the case and why it was only spotted so late on by @IanCheah.

However, since it is a CORS issue, if we directly support offline loading (#2548) and bundle it together it should totally resolve the issue.

Metadata

Metadata

Assignees

Labels

c.Bug 🐛p.HighTo be done in the next few releases

Type

No fields configured for Bug.

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions