Mermaid Tests
Mermaid Tests#
Q: Why aren’t Mermaid diagrams showing up in secondary tabs?
This is a primary tab.
flowchart LR
A[Live] --> B[Laugh]
B --> C[Factor by grouping.]
Diagram shows up fine here.
There’s content here too!
flowchart LR
A[Live] --> B[Laugh]
B --> C[Factor by grouping.]
Same diagram as in Tab A, but it’s not visible after switching.
Syntax
Here’s the code I’m trying to use::
:::::{tab-set}
::::{tab-item} Tab A
This is a primary tab.
```{mermaid}
flowchart LR
A[Live] --> B[Laugh]
B --> C[Factor by grouping.]
```
Diagram shows up fine here.
::::
::::{tab-item} Tab B
Secondary tab.
```{mermaid}
flowchart LR
A[Live] --> B[Laugh]
B --> C[Factor by grouping.]
```
Above is the same diagram as in Tab A, but it's not visible here.
::::
:::::