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
Hey I am facing the same issue, according to the patch you attached it seems that the config is always undefined, thus it will never enter the initialize where the dark theme is attached here.
But to fix the actual problem is to have either a default for the config or allow empty configs here in the useEffect as well. If @sjwall agrees in initializing mermaid without config then I can add a PR
Version
1.3.2
Describe the bug
The issue started as "dark theme does not work".
To Reproduce
Expected behavior
Uses dark theme.
Actual behavior
Uses light theme.
Additional context
I debugged it a bit and it seems that
configSrc
there is alwaysundefined
:mdx-mermaid/src/Mermaid.tsx
Line 43 in 5b22959
This does not seem correct, so in microsoft/griffel#217 I monkey patched it and then it worked, but this does not seem like a proper solution.
Please let me know if it's a setup problem, but in sandbox (https://stackblitz.com/edit/github-pwuwsv-hvqsdq) I have a config exactly like in docs.
The text was updated successfully, but these errors were encountered: