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
Describe the bug
When using mermaid diagrams inside tabs, only the initially shown tab renders the mermaid diagram, on the other tabs, the diagram is not shown. The result is the same for the compiled page and for the page running with the dev-server.
To Reproduce
Insert the following code to a mdx page in docusaurus (V2.1.0):
importTabsfrom'@theme/Tabs';
importTabItemfrom'@theme/TabItem';
<Tabs>
<TabItemvalue="tab-a">
The following mermaid diagram is shown:
```mermaidgraph LR a ---> c(10) b ---> c(10)```
</TabItem>
<TabItemvalue="tab-b">
This mermaid diagram is not displayed:
```mermaidgraph LR d ---> z(42) e ---> z(42)```
</TabItem>
</Tabs>
Expected behavior
Mermaid diagrams are rendered correctly on each tab
Screenshots
Tool chain used:
docusaurus v2.1.0
mermaid v9.1.6
mdx-mermaid v1.3.2
The text was updated successfully, but these errors were encountered:
bh0fer
changed the title
Mermaid-Block not shown within Tab
Mermaid-Block not shown within Tabs
Sep 15, 2022
slorber
added a commit
to sjwall/docusaurus
that referenced
this issue
Oct 14, 2022
Describe the bug
When using mermaid diagrams inside tabs, only the initially shown tab renders the mermaid diagram, on the other tabs, the diagram is not shown. The result is the same for the compiled page and for the page running with the dev-server.
To Reproduce
Insert the following code to a mdx page in docusaurus (V2.1.0):
Expected behavior
Mermaid diagrams are rendered correctly on each tab
Screenshots
Tool chain used:
The text was updated successfully, but these errors were encountered: