Why is the Mermaid block not loading?
Mermaid lets you create diagrams and visualizations using text and code. Learning Mermaid's syntax should not be a problem if you are already familiar with Markdown.
If you are struggling to load your Mermaid diagram, we recommend following these troubleshooting steps:
Ensure the Mermaid integration is installed in your organization and enabled for your space
To ensure Mermaid is displayed correctly in your space, it is essential to confirm that the Mermaid integration is correctly installed in your organization and enabled in your specific space. This is a critical step because, without integration, Mermaid diagrams will not render.
Go to your organization's settings.
Click on the integrations section
Find Mermaid on the list of available integrations
If the integration is not already installed, please install it by following the instructions, which will appear on the screen.
If the integration is already installed, ensure it has been enabled in your space by clicking Configure and then Manage Spaces.
Ensure your Mermaid code is correctly formatted.
Incorrect syntax or formatting errors in your Mermaid code can prevent your diagram from loading correctly.
Please carefully review your Mermaid code.
Compare your syntax with examples in the Mermaid documentation to ensure it is correct.
Use a Mermaid live editor to test your code before embedding it into GitBook.
Ensure that you are using a Mermaid block (and not a code block)
Mermaid blocks and code blocks have different functions in the GitBook editor. Your Mermaid code will not render if pasted into our standard code block.
To add a Mermaid block, hit the /
key and select the Mermaid diagram block