Mermaid graphs missing node labels #10538
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
closed: duplicate
This issue or pull request already exists in another issue or pull request
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Following the official Docusaurus documentation for integrating Mermaid graphs, I'm experiencing an issue where the node labels in embedded Mermaid graphs within blog posts do not display. The nodes appear as empty blocks without any text labels. Reproduced this behavior with site built in docker to isolate possible problems with my environment. Checked in latest Firefox and Chromium browsers.
Reproducible demo
new.docusaurus.io doesn't allow to add modules
Steps to reproduce
Initialize a new Docusaurus site:
npx create-docusaurus@latest my-website classic cd my-website
Install the Mermaid theme:
Update
docusaurus.config.js
(ordocusaurus.config.ts
):Add the following lines to enable the Mermaid theme and plugin:
Add a Mermaid graph to the first blog post:
Append the graph to
blog/2019-05-28-first-blog-post.md
:Start the development server:
Navigate to the first blog post:
Open
http://localhost:3000/blog/first-blog-post
in your browser.Expected behavior
The Mermaid graph should display correctly with all node labels (A, B, C, D) visible.
Actual behavior
The graph is rendered, but the node labels are missing. Nodes appear as empty blocks without any text.
Your environment
Self-service
The text was updated successfully, but these errors were encountered: