Comments (2)
FYI official Docusaurus support is coming with facebook/docusaurus#7490 (with proper dark theme support)
from mdx-mermaid.
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.
A quickfix for your (or in general every setup) could be to have following in the docusaurus config [mdxMermaid.default, {}]
(as seen here: https://stackblitz.com/edit/github-pwuwsv-kx6yjx?file=docusaurus.config.js).
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
from mdx-mermaid.
Related Issues (20)
- docusaurus production build failing with mermaid HOT 3
- Theme variables only applied to first diagram HOT 1
- docusaurus compiling with errors because of mdx-mermaid.
- Compatibility with newer Mermaid versions HOT 2
- Upgrade mermaid to 8.12 or even 9? HOT 7
- [ERR_REQUIRE_ESM] with d3 on NextJS HOT 7
- I cannot install mdx-mermaid plugin HOT 2
- How to use mdx-mermaid with @mdx-js/mdx ? HOT 6
- Mermaid-Block not shown within Tabs HOT 2
- Docusaurus 2.1.0 has another config. HOT 12
- what is the purpose of .default? HOT 2
- Integration with Azure Devops wiki
- Multiple mermaid instances within a single md file result in unexpected output in svg mode
- Lets work together on remark-mermaidjs HOT 1
- Mermaid import tag shown at top of page (as plain text) HOT 2
- TypeError: Cannot read properties of undefined (reading 'children') HOT 1
- React-hydration-error when using next-mdx-remote HOT 2
- TypeScript error `TS7016` occurs while building a React app with `vite`
- Add support for mdx 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mdx-mermaid.