-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
<CodeBlock /> with mermaid #9815
Copy link
Copy link
Closed as not planned
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executionclosed: working as intendedThis issue is intended behavior, there's no need to take any action.This issue is intended behavior, there's no need to take any action.
Metadata
Metadata
Assignees
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executionclosed: working as intendedThis issue is intended behavior, there's no need to take any action.This issue is intended behavior, there's no need to take any action.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clearoryarn clearcommand.rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages.Description
Hello,
With a normal mermaid config, this code is not rendering the mermaid graph (see repro link below)
The actual mermaid graph example:
graph TD; A-->B; A-->C; B-->D; C-->D;https://docusaurus.io/docs/markdown-features/diagrams
Docs says
Diagrams can be rendered using [Mermaid](https://mermaid-js.github.io/mermaid/) in a code block.but apparently not in :/
Reproducible demo
https://codesandbox.io/p/devbox/divine-framework-99ytrv
Steps to reproduce
copy this in a docusaurus with mermaid
Expected behavior
Render the graph using mermaid
Actual behavior
It shows a basic code block like
Self-service